Package com.sun.tools.corba.ee.idl
Class TypedefEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.TypedefEntry
-
public class TypedefEntry extends SymtabEntry
This is the symbol table entry for typedefs.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector
_arrayInfo
(package private) static TypedefGen
typedefGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypedefEntry()
protected
TypedefEntry(SymtabEntry that, IDLID clone)
protected
TypedefEntry(TypedefEntry that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArrayInfo(Expression e)
java.util.Vector
arrayInfo()
This method returns a vector of Expressions, each expression represents a dimension in an array.java.lang.Object
clone()
This is a shallow copy clonevoid
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the typedef generator.Generator
generator()
Access the typedef generator.boolean
isReferencable()
void
isReferencable(boolean value)
-
Methods inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
comment, comment, container, container, dynamicVariable, dynamicVariable, emit, emit, enteringInclude, exitingInclude, fullName, getVariableKey, growVars, initDynamicVars, module, module, name, name, repositoryID, repositoryID, sourceFile, sourceFile, type, type, typeName, typeName
-
-
-
-
Field Detail
-
_arrayInfo
private java.util.Vector _arrayInfo
-
typedefGen
static TypedefGen typedefGen
-
-
Constructor Detail
-
TypedefEntry
protected TypedefEntry()
-
TypedefEntry
protected TypedefEntry(TypedefEntry that)
-
TypedefEntry
protected TypedefEntry(SymtabEntry that, IDLID clone)
-
-
Method Detail
-
arrayInfo
public java.util.Vector arrayInfo()
This method returns a vector of Expressions, each expression represents a dimension in an array. A zero-length vector indicates no array information.- Returns:
- a {link Vector} of
Expression
s
-
addArrayInfo
public void addArrayInfo(Expression e)
-
clone
public java.lang.Object clone()
Description copied from class:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the typedef generator.- Overrides:
generate
in classSymtabEntry
- Parameters:
symbolTable
- the symbol table is a hash table whose key is a fully qualified type name and whose value is a SymtabEntry or a subclass of SymtabEntry.stream
- the stream to which the generator should sent its output.- See Also:
SymtabEntry
-
isReferencable
public boolean isReferencable()
- Overrides:
isReferencable
in classSymtabEntry
-
isReferencable
public void isReferencable(boolean value)
- Overrides:
isReferencable
in classSymtabEntry
-
generator
public Generator generator()
Access the typedef generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the TypedefGen interface.
- See Also:
TypedefGen
-
-