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 AttributeGenattributeGen-
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 protectedAttributeEntry()protectedAttributeEntry(AttributeEntry that)protectedAttributeEntry(InterfaceEntry 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 attribute generator.Generatorgenerator()Access the attribute generator.booleanreadOnly()If true, only a get method will be generated.voidreadOnly(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:SymtabEntryThis is a shallow copy clone- Overrides:
clonein classMethodEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)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:
SymtabEntry
-
generator
public Generator generator()
Access the attribute generator.- Overrides:
generatorin 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.
-
-