org.jacorb.idl
public class AliasTypeSpec extends TypeSpec
Version: $Id: AliasTypeSpec.java,v 1.53 2006/07/13 08:48:28 nick.cross Exp $
Field Summary | |
---|---|
TypeSpec | originalType the type for which this is an alias |
Constructor Summary | |
---|---|
AliasTypeSpec(TypeSpec ts)
Class constructor, |
Method Summary | |
---|---|
void | accept(IDLTreeVisitor visitor) |
boolean | basic() |
String | className() |
Object | clone() |
String | full_name() |
String | getTypeCodeExpression() |
String | holderName() |
TypeSpec | originalType() |
void | parse()
Perform the parsing phase, must be called before code
generation |
void | print(PrintWriter ps)
Code generation, generate holder and helper classes. |
void | printExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype) |
void | printInsertIntoAny(PrintWriter ps, String anyname, String varname) |
String | printReadExpression(String streamname) |
String | printReadStatement(String varname, String streamname) |
String | printWriteStatement(String var_name, String streamname) |
void | setEnclosingSymbol(IdlSymbol s) |
void | setPackage(String s) |
String | toString() |
String | typeName() |
TypeSpec | typeSpec() |
Parameters: ts - the TypeSpec for which to create a new alias
Returns: true if this is a basic type
Returns: a string for an expression of type TypeCode that describes this type Note that this is the TypeSpec for the alias type and is not unwound to the original type.
Returns: the original type for which this is an alias
Returns: the type name of this alias, which is the name of the original type