Package com.sun.tools.corba.ee.idl
Class StringEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.StringEntry
-
public class StringEntry extends SymtabEntry
-
-
Field Summary
Fields Modifier and Type Field Description private Expression_maxSize(package private) static StringGenstringGen-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringEntry()protectedStringEntry(StringEntry that)protectedStringEntry(SymtabEntry that, IDLID clone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()This is a shallow copy clonevoidgenerate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)Invoke the string type generator.Generatorgenerator()Access the primitive type generator.ExpressionmaxSize()The constant expression defining the maximum size of the string.voidmaxSize(Expression expr)The constant expression defining the maximum size of the string.-
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
-
stringGen
static StringGen stringGen
-
_maxSize
private Expression _maxSize
-
-
Constructor Detail
-
StringEntry
protected StringEntry()
-
StringEntry
protected StringEntry(StringEntry that)
-
StringEntry
protected StringEntry(SymtabEntry that, IDLID clone)
-
-
Method Detail
-
clone
public java.lang.Object clone()
Description copied from class:SymtabEntryThis is a shallow copy clone- Overrides:
clonein classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)Invoke the string type generator.- Overrides:
generatein 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 primitive type generator.- Overrides:
generatorin classSymtabEntry- Returns:
- an object which implements the PrimitiveGen interface.
- See Also:
PrimitiveGen
-
maxSize
public void maxSize(Expression expr)
The constant expression defining the maximum size of the string. If it is null, then the string is unbounded.- Parameters:
expr- the maximum size of the string to set
-
maxSize
public Expression maxSize()
The constant expression defining the maximum size of the string. If it is null, then the string is unbounded.- Returns:
- the maximum size of the String
-
-