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_nameparse_state, sym| Constructor and Description |
|---|
SequenceType(int num) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
className() |
java.lang.Object |
clone() |
java.lang.String |
full_name() |
static int |
getNumber() |
java.lang.String |
getTypeCodeExpression() |
java.lang.String |
helperName() |
java.lang.String |
holderName() |
int |
length() |
void |
parse()
The parsing phase.
|
void |
print(java.io.PrintWriter out) |
void |
printExtractResult(java.io.PrintWriter out,
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
|
void |
printInsertIntoAny(java.io.PrintWriter out,
java.lang.String anyname,
java.lang.String varname)
Prints the java-commands to insert the variable varname into
the Any anyname
|
java.lang.String |
printReadStatement(java.lang.String var_name,
java.lang.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.
|
java.lang.String |
printWriteStatement(java.lang.String var_name,
java.lang.String streamname) |
void |
setEnclosingSymbol(IdlSymbol symbol) |
void |
setPackage(java.lang.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, typeNamebasic, markTypeDefdgetIDLTypeName, getJavaTypeName, getTypeCodeExpression, printExtractExpression, printInsertExpression, set_constraddImportedAlias, 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, setPrintPhaseNamespublic ConstExpr max
public void setEnclosingSymbol(IdlSymbol symbol)
setEnclosingSymbol in class TypeSpecpublic TypeSpec typeSpec()
public void setPackage(java.lang.String pkg)
setPackage in class TypeSpecpublic int length()
length in class VectorTypepublic java.lang.String getTypeCodeExpression()
getTypeCodeExpression in class TypeSpecpublic static int getNumber()
public java.lang.String printReadStatement(java.lang.String var_name,
java.lang.String streamname)
printReadStatement in class TypeSpecpublic java.lang.String printWriteStatement(java.lang.String var_name,
java.lang.String streamname)
printWriteStatement in class TypeSpecpublic java.lang.String holderName()
holderName in class VectorTypepublic java.lang.String helperName()
helperName in class VectorTypepublic java.lang.String className()
public void parse()
parse in class TemplateTypeSpecpublic java.lang.String full_name()
public void printInsertIntoAny(java.io.PrintWriter out,
java.lang.String anyname,
java.lang.String varname)
TypeSpecprintInsertIntoAny in class VectorTypeout - 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 out,
java.lang.String resultname,
java.lang.String anyname,
java.lang.String resulttype)
TypeSpecprintExtractResult in class VectorTypeout - Stream, the commands shall be written toresultname - Name of the result variableanyname - Name of the Any holding the resultresulttype - Type of the result variable