public class ConstrTypeSpec extends TypeSpec
| Modifier and Type | Field and Description |
|---|---|
TypeDeclaration |
c_type_spec |
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_nameparse_state, sym| Constructor and Description |
|---|
ConstrTypeSpec(int num) |
ConstrTypeSpec(TypeDeclaration c) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
|
boolean |
basic() |
java.lang.Object |
clone() |
TypeDeclaration |
declaration() |
java.lang.String |
full_name() |
java.lang.String |
getTypeCodeExpression() |
java.lang.String |
getTypeCodeExpression(java.util.Set knownTypeSpecs) |
java.lang.String |
helperName() |
java.lang.String |
holderName() |
java.lang.String |
id() |
java.lang.String |
omgPrefix() |
void |
parse()
empty parse
|
void |
print(java.io.PrintWriter ps) |
java.lang.String |
printExtractExpression() |
void |
printExtractResult(java.io.PrintWriter ps,
java.lang.String resultname,
java.lang.String anyname,
java.lang.String resulttype)
Prints the java-commands to extract the contents of the Any anyname
into a variable resultname with the type resulttype
|
java.lang.String |
printInsertExpression() |
void |
printInsertIntoAny(java.io.PrintWriter ps,
java.lang.String anyname,
java.lang.String varname)
Prints the java-commands to insert the variable varname into
the Any anyname
|
java.lang.String |
printReadExpression(java.lang.String streamname) |
java.lang.String |
printWriteStatement(java.lang.String var_name,
java.lang.String streamname) |
void |
set_name(java.lang.String n)
the name of this symbol
|
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(java.lang.String s) |
java.lang.String |
toString() |
java.lang.String |
typeName() |
TypeSpec |
typeSpec() |
getIDLTypeName, getJavaTypeName, getTCKind, printReadStatement, set_constraddImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, is_included, is_pseudo, isEscaped, name, new_num, printClassComment, printIdMethod, printImport, set_pseudo, set_token, setPrintPhaseNamespublic TypeDeclaration c_type_spec
public ConstrTypeSpec(int num)
public ConstrTypeSpec(TypeDeclaration c)
public void set_name(java.lang.String n)
IdlSymbolpublic TypeDeclaration declaration()
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol in class TypeSpecpublic java.lang.String full_name()
public java.lang.String omgPrefix()
public boolean basic()
public void parse()
IdlSymbolpublic void setPackage(java.lang.String s)
setPackage in class TypeSpecpublic java.lang.String getTypeCodeExpression(java.util.Set knownTypeSpecs)
getTypeCodeExpression in class TypeSpecpublic java.lang.String getTypeCodeExpression()
getTypeCodeExpression in class TypeSpecpublic java.lang.String holderName()
holderName in class TypeSpecpublic java.lang.String helperName()
throws NoHelperException
helperName in class TypeSpecNoHelperExceptionpublic java.lang.String printReadExpression(java.lang.String streamname)
printReadExpression in class TypeSpecpublic java.lang.String printWriteStatement(java.lang.String var_name,
java.lang.String streamname)
printWriteStatement in class TypeSpecpublic java.lang.String printInsertExpression()
printInsertExpression in class TypeSpecpublic java.lang.String printExtractExpression()
printExtractExpression in class TypeSpecpublic java.lang.String id()
public void printInsertIntoAny(java.io.PrintWriter ps,
java.lang.String anyname,
java.lang.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(java.io.PrintWriter ps,
java.lang.String resultname,
java.lang.String anyname,
java.lang.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)
IdlSymbol