org.jacorb.idl
Class TypeDeclaration
java.lang.Object
org.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.Declaration
org.jacorb.idl.TypeDeclaration
- Direct Known Subclasses:
- EnumType, Interface, NativeType, StructType, TypeDef, UnionType, Value
public class TypeDeclaration
- extends Declaration
| 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 |
type_decl
public TypeDeclaration type_decl
TypeDeclaration
public TypeDeclaration(int num)
clone
public Object clone()
- Overrides:
clone in class Object
declaration
public TypeDeclaration declaration()
typeName
public String typeName()
markTypeDefd
public void markTypeDefd(String alias)
- we have to be able to distinguish between explicitly typedef'd
type names and anonymously defined type names
getRecursiveTypeCodeExpression
public String getRecursiveTypeCodeExpression()
getTypeCodeExpression
public String getTypeCodeExpression(Set knownTypes)
- Returns a type code expression (for use in generated code) for
this type. If `knownTypes' contains this type,
then a recursive type code is returned.
getTypeCodeExpression
public String getTypeCodeExpression()
- Returns:
- a string for an expression of type TypeCode
that describes this type
basic
public boolean basic()
setPackage
public void setPackage(String s)
- Overrides:
setPackage in class IdlSymbol
set_included
public void set_included(boolean i)
- Description copied from class:
IdlSymbol
- used by the lexer to mark this symbol as included from another
IDL file
parse
public void parse()
- Description copied from class:
IdlSymbol
- empty parse
- Overrides:
parse in class IdlSymbol
holderName
public String holderName()
helperName
public String helperName()
throws NoHelperException
- Throws:
NoHelperException
print
public void print(PrintWriter ps)
- Overrides:
print in class IdlSymbol
toString
public String toString()
- Overrides:
toString in class Object
setEnclosingSymbol
public void setEnclosingSymbol(IdlSymbol s)
- Overrides:
setEnclosingSymbol in class IdlSymbol
printReadExpression
public String printReadExpression(String streamname)
printReadStatement
public String printReadStatement(String var_name,
String streamname)
printWriteStatement
public String printWriteStatement(String var_name,
String streamname)
accept
public void accept(IDLTreeVisitor visitor)
- Description copied from class:
IdlSymbol
- let the visitor pattern do its work...
- Overrides:
accept in class Declaration
printInsertIntoAny
public void printInsertIntoAny(PrintWriter ps,
String anyname,
String varname)
printExtractResult
public void printExtractResult(PrintWriter ps,
String resultname,
String anyname,
String resulttype)
printSerialVersionUID
public void printSerialVersionUID(PrintWriter ps)
Copyright © 2012 JacORB. All Rights Reserved.