org.jacorb.idl
Class StructType
java.lang.Object
org.jacorb.idl.runtime.symbol
org.jacorb.idl.IdlSymbol
org.jacorb.idl.Declaration
org.jacorb.idl.TypeDeclaration
org.jacorb.idl.StructType
- All Implemented Interfaces:
- Scope
public class StructType
- extends TypeDeclaration
- implements Scope
- Version:
- $Id: StructType.java,v 1.72 2012-01-26 09:15:45 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 |
exc
public boolean exc
memberlist
public MemberList memberlist
StructType
public StructType(int num)
setScopeData
public void setScopeData(ScopeData data)
- Specified by:
setScopeData in interface Scope
getScopeData
public ScopeData getScopeData()
- Specified by:
getScopeData in interface Scope
isException
public boolean isException()
- Returns:
- true if this struct represents an IDL exception
clone
public Object clone()
- Overrides:
clone in class TypeDeclaration
declaration
public TypeDeclaration declaration()
- Overrides:
declaration in class TypeDeclaration
typeName
public String typeName()
- Overrides:
typeName in class TypeDeclaration
getTCKind
public int getTCKind()
basic
public boolean basic()
- Overrides:
basic in class TypeDeclaration
set_memberlist
public void set_memberlist(MemberList m)
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
- Overrides:
set_included in class TypeDeclaration
setPackage
public void setPackage(String s)
- Overrides:
setPackage in class TypeDeclaration
setEnclosingSymbol
public void setEnclosingSymbol(IdlSymbol s)
- Overrides:
setEnclosingSymbol in class TypeDeclaration
toString
public String toString()
- Overrides:
toString in class TypeDeclaration
parse
public void parse()
- Description copied from class:
IdlSymbol
- empty parse
- Overrides:
parse in class TypeDeclaration
className
public String className()
printReadExpression
public String printReadExpression(String Streamname)
- Overrides:
printReadExpression in class TypeDeclaration
printWriteStatement
public String printWriteStatement(String var_name,
String streamname)
- Overrides:
printWriteStatement in class TypeDeclaration
holderName
public String holderName()
- Overrides:
holderName in class TypeDeclaration
helperName
public String helperName()
- Overrides:
helperName in class TypeDeclaration
getTypeCodeExpression
public String getTypeCodeExpression()
- Overrides:
getTypeCodeExpression in class TypeDeclaration
- Returns:
- a string for an expression of type TypeCode that
describes this type
getTypeCodeExpression
public String getTypeCodeExpression(Set knownTypes)
- Description copied from class:
TypeDeclaration
- 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.
- Overrides:
getTypeCodeExpression in class TypeDeclaration
print
public void print(PrintWriter ps)
- Generates code from this AST class
- Overrides:
print in class TypeDeclaration
- Parameters:
ps - not used, the necessary output streams to classes
that receive code (e.g., helper and holder classes for the
IDL/Java mapping, are created inside this method.
printInsertIntoAny
public void printInsertIntoAny(PrintWriter ps,
String anyname,
String varname)
- Overrides:
printInsertIntoAny in class TypeDeclaration
printExtractResult
public void printExtractResult(PrintWriter ps,
String resultname,
String anyname,
String resulttype)
- Overrides:
printExtractResult in class TypeDeclaration
accept
public void accept(IDLTreeVisitor visitor)
- Description copied from class:
IdlSymbol
- let the visitor pattern do its work...
- Overrides:
accept in class TypeDeclaration
Copyright © 2012 JacORB. All Rights Reserved.