public class ArrayTypeSpec extends VectorType
Modifier and Type | Field and Description |
---|---|
int[] |
dims |
typedefd
_id, enclosing_symbol, fileSeparator, included, inhibitionFlag, is_pseudo, omg_package_prefix, pack_name
parse_state, sym
Constructor and Description |
---|
ArrayTypeSpec(int num,
TypeSpec elem,
ArrayDeclarator ad,
String pack_name) |
Modifier and Type | Method and Description |
---|---|
String |
className() |
Object |
clone()
clone this ArrayTypeSpec.
|
int |
getTCKind() |
String |
getTypeCodeExpression() |
String |
helperName() |
String |
holderName() |
int |
length() |
void |
markTypeDefd()
we have to be able to distinguish between explicitly typedef'd
type names and anonymously defined type names
|
void |
parse()
empty parse
|
void |
print(PrintWriter _ps) |
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
|
void |
printInsertIntoAny(PrintWriter ps,
String anyname,
String varname)
Prints the java-commands to insert the variable varname into
the Any anyname
|
String |
printReadStatement(String var_name,
String streamname) |
String |
printWriteStatement(String var_name,
String streamname) |
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
TypeSpec |
typeSpec() |
accept, elementTypeExpression, elementTypeName, elementTypeSpec, printReadExpression, setTypeSpec, toString, typeName
basic
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 ArrayTypeSpec(int num, TypeSpec elem, ArrayDeclarator ad, String pack_name)
public Object clone()
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol
in class TypeSpec
public void setPackage(String s)
setPackage
in class TypeSpec
public void markTypeDefd()
markTypeDefd
in class TemplateTypeSpec
public void parse() throws ParseException
IdlSymbol
parse
in class TemplateTypeSpec
ParseException
public String getTypeCodeExpression()
getTypeCodeExpression
in class TypeSpec
public int getTCKind()
getTCKind
in class VectorType
public String helperName()
helperName
in class VectorType
public String holderName()
holderName
in class VectorType
public String className()
public int length()
length
in class VectorType
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 void print(PrintWriter _ps)
public void printInsertIntoAny(PrintWriter ps, String anyname, String varname)
TypeSpec
printInsertIntoAny
in class VectorType
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 VectorType
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 © 2016 JacORB. All rights reserved.