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_name
parse_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() |
Object |
clone() |
TypeDeclaration |
declaration() |
String |
full_name() |
String |
getTypeCodeExpression() |
String |
getTypeCodeExpression(Set knownTypeSpecs) |
String |
helperName() |
String |
holderName() |
String |
id() |
String |
omgPrefix() |
void |
parse()
empty parse
|
void |
print(PrintWriter ps) |
String |
printExtractExpression() |
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
|
String |
printInsertExpression() |
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 |
printWriteStatement(String var_name,
String streamname) |
void |
set_name(String n)
the name of this symbol
|
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
String |
toString() |
String |
typeName() |
TypeSpec |
typeSpec() |
getIDLTypeName, getJavaTypeName, getTCKind, printReadStatement, set_constr
addImportedAlias, 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, setPrintPhaseNames
public TypeDeclaration c_type_spec
public ConstrTypeSpec(int num)
public ConstrTypeSpec(TypeDeclaration c)
public void set_name(String n)
IdlSymbol
public TypeDeclaration declaration()
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol
in class TypeSpec
public String full_name()
public String omgPrefix()
public boolean basic()
public void parse()
IdlSymbol
public void setPackage(String s)
setPackage
in class TypeSpec
public String getTypeCodeExpression(Set knownTypeSpecs)
getTypeCodeExpression
in class TypeSpec
public String getTypeCodeExpression()
getTypeCodeExpression
in class TypeSpec
public void print(PrintWriter ps)
public String holderName()
holderName
in class TypeSpec
public String helperName() throws NoHelperException
helperName
in class TypeSpec
NoHelperException
public String printReadExpression(String streamname)
printReadExpression
in class TypeSpec
public String printWriteStatement(String var_name, String streamname)
printWriteStatement
in class TypeSpec
public String printInsertExpression()
printInsertExpression
in class TypeSpec
public String printExtractExpression()
printExtractExpression
in class TypeSpec
public void printInsertIntoAny(PrintWriter ps, String anyname, String varname)
TypeSpec
printInsertIntoAny
in class TypeSpec
ps
- 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)
TypeSpec
printExtractResult
in class TypeSpec
ps
- 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
Copyright © 2016 JacORB. All rights reserved.