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
methodGenFields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAttributeEntry(AttributeEntry that) protectedAttributeEntry(InterfaceEntry that, IDLID clone) -
Method Summary
Modifier and TypeMethodDescriptionclone()This is a shallow copy clonevoidgenerate(Hashtable symbolTable, PrintWriter stream) Invoke the attribute generator.Access the attribute generator.booleanreadOnly()If true, only a get method will be generated.voidreadOnly(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, valueMethodMethods 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:SymtabEntryThis is a shallow copy clone- Overrides:
clonein classMethodEntry
-
generate
Invoke the attribute generator.- Overrides:
generatein 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:
generatorin 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.
-