public class SequenceType extends VectorType
Modifier and Type | Field and Description |
---|---|
ConstExpr |
max |
typedefd
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
parse_state, sym
Constructor and Description |
---|
SequenceType(int num) |
Modifier and Type | Method and Description |
---|---|
String |
className() |
Object |
clone() |
String |
full_name() |
static int |
getNumber() |
String |
getTypeCodeExpression() |
String |
helperName() |
String |
holderName() |
int |
length() |
void |
parse()
The parsing phase.
|
void |
print(PrintWriter out) |
void |
printExtractResult(PrintWriter out,
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 out,
String anyname,
String varname)
Prints the java-commands to insert the variable varname into
the Any anyname
|
String |
printReadStatement(String var_name,
String streamname)
We have to distinguish between sequence types that have been
explicitly declared as types with a typedef and those that
are declared as anonymous types in structs or unions.
|
String |
printWriteStatement(String var_name,
String streamname) |
void |
setEnclosingSymbol(IdlSymbol symbol) |
void |
setPackage(String pkg) |
TypeSpec |
typeSpec()
since the sequence type's name depends on a declarator
given in the typedef, the name varilabe has to be set explicitly
by the TypeDef object before this sequence type can
be used.
|
accept, elementTypeExpression, elementTypeName, elementTypeSpec, getTCKind, printReadExpression, setTypeSpec, toString, typeName
basic, markTypeDefd
getIDLTypeName, getJavaTypeName, getTypeCodeExpression, printExtractExpression, printInsertExpression, set_constr
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 ConstExpr max
public void setEnclosingSymbol(IdlSymbol symbol)
setEnclosingSymbol
in class TypeSpec
public TypeSpec typeSpec()
public void setPackage(String pkg)
setPackage
in class TypeSpec
public int length()
length
in class VectorType
public String getTypeCodeExpression()
getTypeCodeExpression
in class TypeSpec
public static int getNumber()
public String printReadStatement(String var_name, String streamname)
printReadStatement
in class TypeSpec
public String printWriteStatement(String var_name, String streamname)
printWriteStatement
in class TypeSpec
public String holderName()
holderName
in class VectorType
public String helperName()
helperName
in class VectorType
public String className()
public void parse()
parse
in class TemplateTypeSpec
public String full_name()
public void print(PrintWriter out)
public void printInsertIntoAny(PrintWriter out, String anyname, String varname)
TypeSpec
printInsertIntoAny
in class VectorType
out
- 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 out, String resultname, String anyname, String resulttype)
TypeSpec
printExtractResult
in class VectorType
out
- 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.