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
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
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotected
protected
AttributeEntry
(AttributeEntry that) protected
AttributeEntry
(InterfaceEntry that, IDLID clone) -
Method Summary
Modifier and TypeMethodDescriptionclone()
This is a shallow copy clonevoid
generate
(Hashtable symbolTable, PrintWriter stream) Invoke the attribute generator.Access the attribute generator.boolean
readOnly()
If true, only a get method will be generated.void
readOnly
(boolean readOnly) Sets the readOnly parameterMethods 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 Details
-
attributeGen
-
_readOnly
public boolean _readOnly
-
-
Constructor Details
-
AttributeEntry
protected AttributeEntry() -
AttributeEntry
-
AttributeEntry
-
-
Method Details
-
clone
Description copied from class:SymtabEntry
This is a shallow copy clone- Overrides:
clone
in classMethodEntry
-
generate
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:
-
generator
Access the attribute generator.- Overrides:
generator
in classMethodEntry
- Returns:
- an object which implements the AttributeGen interface.
- See Also:
-
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.
-