org.jacorb.idl
Class TypeSpec
java.lang.Object
org.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.TypeSpec
- Direct Known Subclasses:
- AliasTypeSpec, ConstrTypeSpec, ExceptionHolderTypeSpec, ObjectTypeSpec, ReplyHandlerTypeSpec, SimpleTypeSpec, TypeCodeTypeSpec, VoidTypeSpec
public class TypeSpec
- extends IdlSymbol
- Version:
- $Id: TypeSpec.java,v 1.32 2011-11-11 21:00:52 nick.cross Exp $
- Author:
- Gerald Brose
| Methods inherited from class org.jacorb.idl.IdlSymbol |
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 |
alias
protected String alias
type_spec
public TypeSpec type_spec
TypeSpec
public TypeSpec(int num)
getIDLType
protected static String getIDLType(TypeSpec ts)
clone
public Object clone()
- Overrides:
clone in class Object
typeName
public String typeName()
typeSpec
public TypeSpec typeSpec()
getTCKind
public int getTCKind()
accept
public void accept(IDLTreeVisitor visitor)
- Description copied from class:
IdlSymbol
- let the visitor pattern do its work...
- Overrides:
accept in class IdlSymbol
setPackage
public void setPackage(String s)
- Overrides:
setPackage in class IdlSymbol
setEnclosingSymbol
public void setEnclosingSymbol(IdlSymbol s)
- Overrides:
setEnclosingSymbol in class IdlSymbol
basic
public boolean basic()
- Returns:
- true if this is a basic type
set_constr
public void set_constr(TypeDeclaration td)
parse
public void parse()
- Description copied from class:
IdlSymbol
- empty parse
- Overrides:
parse in class IdlSymbol
toString
public String toString()
- Overrides:
toString in class Object
getTypeCodeExpression
public String getTypeCodeExpression(Set knownTypes)
getTypeCodeExpression
public String getTypeCodeExpression()
- Returns:
- a string for an expression of type TypeCode
that describes this type
print
public void print(PrintWriter ps)
- Overrides:
print in class IdlSymbol
holderName
public String holderName()
helperName
public String helperName()
throws NoHelperException
- Throws:
NoHelperException
printReadExpression
public String printReadExpression(String streamname)
printReadStatement
public String printReadStatement(String var_name,
String streamname)
printWriteStatement
public String printWriteStatement(String var_name,
String streamname)
printInsertExpression
public String printInsertExpression()
printExtractExpression
public String printExtractExpression()
printInsertIntoAny
public void printInsertIntoAny(PrintWriter ps,
String anyname,
String varname)
- Prints the java-commands to insert the variable varname into
the Any anyname
- Parameters:
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 inserted
printExtractResult
public 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
- Parameters:
ps - Stream, the commands shall be written toresultname - Name of the result variableanyname - Name of the Any holding the resultresulttype - Type of the result variable
Copyright © 2012 JacORB. All Rights Reserved.