public class TypeSpec extends IdlSymbol
Modifier and Type | Field and Description |
---|---|
protected String |
alias |
TypeSpec |
type_spec |
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
parse_state, sym
Constructor and Description |
---|
TypeSpec(int num) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IDLTreeVisitor visitor)
let the visitor pattern do its work...
|
boolean |
basic() |
Object |
clone() |
String |
getIDLTypeName()
get this symbol's IDL type name
|
String |
getJavaTypeName()
get this types's mapped Java name
|
int |
getTCKind() |
String |
getTypeCodeExpression() |
String |
getTypeCodeExpression(Set knownTypes) |
String |
helperName() |
String |
holderName() |
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 |
printReadStatement(String var_name,
String streamname) |
String |
printWriteStatement(String var_name,
String streamname) |
void |
set_constr(TypeDeclaration td) |
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
String |
toString() |
String |
typeName()
Deprecated.
use either getJavaTypeName() or getIDLTypeName()
|
TypeSpec |
typeSpec() |
addImportedAlias, 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, setPrintPhaseNames
public String typeName()
public String getJavaTypeName()
public String getIDLTypeName()
public TypeSpec typeSpec()
public int getTCKind()
public void accept(IDLTreeVisitor visitor)
IdlSymbol
public void setPackage(String s)
setPackage
in class IdlSymbol
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol
in class IdlSymbol
public boolean basic()
public void set_constr(TypeDeclaration td)
public void parse()
IdlSymbol
public String getTypeCodeExpression()
public void print(PrintWriter ps)
public String holderName()
public String helperName() throws NoHelperException
NoHelperException
public String printInsertExpression()
public String printExtractExpression()
public void printInsertIntoAny(PrintWriter ps, String anyname, String varname)
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)
ps
- Stream, the commands shall be written toresultname
- Name of the result variableanyname
- Name of the Any holding the resultresulttype
- Type of the result variableCopyright © 2017 JacORB. All rights reserved.