public class AliasTypeSpec extends TypeSpec
| Modifier and Type | Field and Description |
|---|---|
TypeSpec |
originalType
the type for which this is an alias
|
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_nameparse_state, sym| Constructor and Description |
|---|
AliasTypeSpec(TypeSpec ts)
Class constructor,
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
|
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)
Prints the java-commands to extract the contents of the Any anyname
into a variable resultname with the type resulttype
|
void |
printInsertIntoAny(PrintWriter ps,
String anyname,
String varname)
Prints the java-commands to insert the variable varname into
the Any anyname
|
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() |
getIDLTypeName, getJavaTypeName, getTCKind, getTypeCodeExpression, helperName, printExtractExpression, printInsertExpression, set_constraddImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, id, is_included, is_pseudo, isEscaped, name, new_num, omgPrefix, printClassComment, printIdMethod, printImport, set_name, set_pseudo, set_token, setPrintPhaseNamespublic TypeSpec originalType
public AliasTypeSpec(TypeSpec ts)
ts - - the TypeSpec for which to create a new aliaspublic String full_name()
public String typeName()
public TypeSpec originalType()
public void setPackage(String s)
setPackage in class TypeSpecpublic void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol in class TypeSpecpublic boolean basic()
public void parse()
public String getTypeCodeExpression()
getTypeCodeExpression in class TypeSpecpublic String className()
public void print(PrintWriter ps)
public String printReadStatement(String varname, String streamname)
printReadStatement in class TypeSpecpublic String printReadExpression(String streamname)
printReadExpression in class TypeSpecpublic String printWriteStatement(String var_name, String streamname)
printWriteStatement in class TypeSpecpublic String holderName()
holderName in class TypeSpecpublic void printInsertIntoAny(PrintWriter ps, String anyname, String varname)
TypeSpecprintInsertIntoAny in class TypeSpecps - Stream, the commands shall be written toanyname - Name of the Any into which the variable shall be insertedvarname - Name of the variable which shall be insertedpublic void printExtractResult(PrintWriter ps, String resultname, String anyname, String resulttype)
TypeSpecprintExtractResult in class TypeSpecps - Stream, the commands shall be written toresultname - Name of the result variableanyname - Name of the Any holding the resultresulttype - Type of the result variablepublic void accept(IDLTreeVisitor visitor)
IdlSymbolCopyright © 2017 JacORB. All rights reserved.