Package com.sun.tools.corba.ee.idl
Class SequenceEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.SequenceEntry
-
public class SequenceEntry extends SymtabEntry
This is the symbol table entry for sequences.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<SymtabEntry>
_contained
private Expression
_maxSize
(package private) static SequenceGen
sequenceGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SequenceEntry()
protected
SequenceEntry(SequenceEntry that)
protected
SequenceEntry(SymtabEntry that, IDLID clone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContained(SymtabEntry entry)
Only sequences can be contained within sequences.java.lang.Object
clone()
This is a shallow copy clonejava.util.Vector<SymtabEntry>
contained()
Only sequences can be contained within sequences.void
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the sequence generator.Generator
generator()
Access the sequence generator.boolean
isReferencable()
void
isReferencable(boolean value)
Expression
maxSize()
the constant expression defining the maximum size of the sequence.void
maxSize(Expression expr)
the constant expression defining the maximum size of the sequence.-
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
-
sequenceGen
static SequenceGen sequenceGen
-
_maxSize
private Expression _maxSize
-
_contained
private java.util.Vector<SymtabEntry> _contained
-
-
Constructor Detail
-
SequenceEntry
protected SequenceEntry()
-
SequenceEntry
protected SequenceEntry(SequenceEntry that)
-
SequenceEntry
protected SequenceEntry(SymtabEntry that, IDLID clone)
-
-
Method Detail
-
clone
public java.lang.Object clone()
Description copied from class:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classSymtabEntry
-
isReferencable
public boolean isReferencable()
- Overrides:
isReferencable
in classSymtabEntry
-
isReferencable
public void isReferencable(boolean value)
- Overrides:
isReferencable
in classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the sequence 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 sequence generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the SequenceGen interface.
- See Also:
SequenceGen
-
maxSize
public void maxSize(Expression expr)
the constant expression defining the maximum size of the sequence. If it is null, then the sequence is unbounded.- Parameters:
expr
- maximum size of sequence
-
maxSize
public Expression maxSize()
the constant expression defining the maximum size of the sequence. If it is null, then the sequence is unbounded.
-
addContained
public void addContained(SymtabEntry entry)
Only sequences can be contained within sequences.- Parameters:
entry
- a sequence to add
-
contained
public java.util.Vector<SymtabEntry> contained()
Only sequences can be contained within sequences.- Returns:
- this should be a vector of
SequenceEntry
s
-
-