public class ShortType extends IntType
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
parse_state, sym
Constructor and Description |
---|
ShortType(int num) |
Modifier and Type | Method and Description |
---|---|
boolean |
basic() |
String |
getIDLTypeName()
get this symbol's IDL type name
|
String |
getJavaTypeName()
get this types's mapped Java name
|
int |
getTCKind()
the "kind of TypeCode" for this type
|
String |
holderName() |
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 ps) |
String |
printReadStatement(String var_name,
String ps) |
String |
printWriteStatement(String var_name,
String ps) |
String |
toString() |
String |
typeName() |
TypeSpec |
typeSpec() |
isSwitchable, setUnsigned
getTypeCodeExpression, id, isBasicName, isSwitchType, parse, print, setEnclosingSymbol, setPackage, typeCodeExpressionSkeleton
accept
clone, getTypeCodeExpression, helperName, set_constr
addImportedAlias, addImportedName, addImportedName, addImportedNameHolder, deEscapeName, escapeName, generateIncluded, get_token, getEnclosingSymbol, getFullName, is_included, is_pseudo, isEscaped, name, new_num, omgPrefix, printClassComment, printIdMethod, printImport, set_name, set_pseudo, set_token, setPrintPhaseNames
public String getJavaTypeName()
getJavaTypeName
in class TypeSpec
public String getIDLTypeName()
getIDLTypeName
in class TypeSpec
public boolean basic()
public int getTCKind()
BaseType
public String holderName()
holderName
in class TypeSpec
public String printReadExpression(String ps)
printReadExpression
in class TypeSpec
public String printReadStatement(String var_name, String ps)
printReadStatement
in class TypeSpec
public String printWriteStatement(String var_name, String ps)
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 variableCopyright © 2017 JacORB. All rights reserved.