Package com.sun.tools.corba.ee.idl
Class ConstEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.ConstEntry
-
public class ConstEntry extends SymtabEntry
This is the symbol table entry for constants.
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
_value
(package private) static ConstGen
constGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstEntry()
protected
ConstEntry(ConstEntry that)
protected
ConstEntry(SymtabEntry that, IDLID clone)
This is a shallow copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
This is a shallow copy clone.void
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the constant generator.Generator
generator()
Access the constant generator.Expression
value()
void
value(Expression newValue)
-
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, isReferencable, isReferencable, module, module, name, name, repositoryID, repositoryID, sourceFile, sourceFile, type, type, typeName, typeName
-
-
-
-
Field Detail
-
constGen
static ConstGen constGen
-
_value
private Expression _value
-
-
Constructor Detail
-
ConstEntry
protected ConstEntry()
-
ConstEntry
protected ConstEntry(ConstEntry that)
-
ConstEntry
protected ConstEntry(SymtabEntry that, IDLID clone)
This is a shallow copy constructor.- Parameters:
that
- entry to copyclone
- id of the clone
-
-
Method Detail
-
clone
public java.lang.Object clone()
This is a shallow copy clone.- Overrides:
clone
in classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the constant 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
-
generator
public Generator generator()
Access the constant generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the ConstGen interface.
- See Also:
ConstGen
-
value
public Expression value()
-
value
public void value(Expression newValue)
-
-