public class StringType extends TemplateTypeSpec
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 |
---|
StringType(int num) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getIDLTypeName()
get this symbol's IDL type name
|
ConstExpr |
getSize() |
int |
getTCKind() |
String |
getTypeCodeExpression() |
String |
holderName() |
boolean |
isWide() |
void |
print(PrintWriter pw) |
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 strname) |
String |
printReadStatement(String var_name,
String strname) |
String |
printWriteStatement(String var_name,
String strname) |
void |
setEnclosingSymbol(IdlSymbol s) |
void |
setPackage(String s) |
void |
setSize(ConstExpr max_) |
void |
setWide() |
String |
toString() |
String |
typeName() |
TypeSpec |
typeSpec() |
basic, markTypeDefd, parse
accept
getJavaTypeName, getTypeCodeExpression, helperName, 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 boolean isWide()
public void setWide()
public String getIDLTypeName()
TypeSpec
getIDLTypeName
in class TypeSpec
public int getTCKind()
getTCKind
in class SimpleTypeSpec
public void setEnclosingSymbol(IdlSymbol s)
setEnclosingSymbol
in class TypeSpec
public void print(PrintWriter pw)
public void setPackage(String s)
setPackage
in class TypeSpec
public String holderName()
holderName
in class TypeSpec
public String getTypeCodeExpression()
getTypeCodeExpression
in class TypeSpec
public String printReadExpression(String strname)
printReadExpression
in class TypeSpec
public String printReadStatement(String var_name, String strname)
printReadStatement
in class TypeSpec
public String printWriteStatement(String var_name, String strname)
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 variablepublic void setSize(ConstExpr max_)
public ConstExpr getSize()
Copyright © 2016 JacORB. All rights reserved.