Package com.sun.tools.corba.ee.idl
Class AttributeEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.MethodEntry
-
- com.sun.tools.corba.ee.idl.AttributeEntry
-
public class AttributeEntry extends MethodEntry
This is the symbol table entry for attributes. An attribute is simply two methods with no exceptions or contexts: a get method and, if not readOnly, a set method.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
_readOnly
(package private) static AttributeGen
attributeGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.MethodEntry
methodGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AttributeEntry()
protected
AttributeEntry(AttributeEntry that)
protected
AttributeEntry(InterfaceEntry that, IDLID clone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
This is a shallow copy clonevoid
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the attribute generator.Generator
generator()
Access the attribute generator.boolean
readOnly()
If true, only a get method will be generated.void
readOnly(boolean readOnly)
Sets the readOnly parameter-
Methods inherited from class com.sun.tools.corba.ee.idl.MethodEntry
addContext, addException, addExceptionName, addParameter, contexts, exceptionNames, exceptions, exceptionsAddElement, oneway, oneway, parameters, type, valueMethod, valueMethod
-
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, typeName, typeName
-
-
-
-
Field Detail
-
attributeGen
static AttributeGen attributeGen
-
_readOnly
public boolean _readOnly
-
-
Constructor Detail
-
AttributeEntry
protected AttributeEntry()
-
AttributeEntry
protected AttributeEntry(AttributeEntry that)
-
AttributeEntry
protected AttributeEntry(InterfaceEntry 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 classMethodEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the attribute generator.- Overrides:
generate
in classMethodEntry
- 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 attribute generator.- Overrides:
generator
in classMethodEntry
- Returns:
- an object which implements the AttributeGen interface.
- See Also:
AttributeGen
-
readOnly
public boolean readOnly()
If true, only a get method will be generated.- Returns:
- if the attribute is readonly
-
readOnly
public void readOnly(boolean readOnly)
Sets the readOnly parameter- Parameters:
readOnly
- If true, only a get method will be generated.
-
-