Package com.sun.tools.corba.ee.idl
Class MethodEntry
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.SymtabEntry
-
- com.sun.tools.corba.ee.idl.MethodEntry
-
- Direct Known Subclasses:
AttributeEntry
public class MethodEntry extends SymtabEntry
This is the symbol table entry for methods.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<java.lang.String>
_contexts
private java.util.Vector<java.lang.String>
_exceptionNames
private java.util.Vector<ExceptionEntry>
_exceptions
private boolean
_oneway
private java.util.Vector
_parameters
private boolean
_valueMethod
(package private) static MethodGen
methodGen
-
Fields inherited from class com.sun.tools.corba.ee.idl.SymtabEntry
includeStack, maxKey, setEmit
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MethodEntry()
protected
MethodEntry(InterfaceEntry that, IDLID clone)
protected
MethodEntry(MethodEntry that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContext(java.lang.String context)
void
addException(ExceptionEntry exception)
Add an exception to the exception list.void
addExceptionName(java.lang.String name)
Add an exception name to the list of exception names.void
addParameter(ParameterEntry parameter)
Add a parameter to the parameter list.java.lang.Object
clone()
This is a shallow copy clonejava.util.Vector<java.lang.String>
contexts()
This is a vector of strings, each of which is the name of a context.java.util.Vector<java.lang.String>
exceptionNames()
This is a vector of strings, each of which is the full name of an exception which this method throws.java.util.Vector<ExceptionEntry>
exceptions()
This a a vector of the exceptions which this method raises.(package private) void
exceptionsAddElement(ExceptionEntry e)
void
generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the method generator.Generator
generator()
Access the method generator.boolean
oneway()
Is this a oneway method?void
oneway(boolean yes)
Is this a oneway method?java.util.Vector<ParameterEntry>
parameters()
This is a vector of ParameterEntry's.void
type(SymtabEntry newType)
boolean
valueMethod()
Is this a value method?void
valueMethod(boolean yes)
Is this a value method?-
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
-
_exceptionNames
private java.util.Vector<java.lang.String> _exceptionNames
-
_exceptions
private java.util.Vector<ExceptionEntry> _exceptions
-
_contexts
private java.util.Vector<java.lang.String> _contexts
-
_parameters
private java.util.Vector _parameters
-
_oneway
private boolean _oneway
-
_valueMethod
private boolean _valueMethod
-
methodGen
static MethodGen methodGen
-
-
Constructor Detail
-
MethodEntry
protected MethodEntry()
-
MethodEntry
protected MethodEntry(MethodEntry that)
-
MethodEntry
protected MethodEntry(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 classSymtabEntry
-
generate
public void generate(java.util.Hashtable symbolTable, java.io.PrintWriter stream)
Invoke the method generator.- Overrides:
generate
in 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 method generator.- Overrides:
generator
in classSymtabEntry
- Returns:
- an object which implements the MethodGen interface.
- See Also:
MethodGen
-
type
public void type(SymtabEntry newType)
- Overrides:
type
in classSymtabEntry
-
addException
public void addException(ExceptionEntry exception)
Add an exception to the exception list.- Parameters:
exception
- Exception to add
-
exceptions
public java.util.Vector<ExceptionEntry> exceptions()
This a a vector of the exceptions which this method raises.- Returns:
- raised exceptions
-
addExceptionName
public void addExceptionName(java.lang.String name)
Add an exception name to the list of exception names.- Parameters:
name
- the full name of an exception which this method throws
-
exceptionNames
public java.util.Vector<java.lang.String> exceptionNames()
This is a vector of strings, each of which is the full name of an exception which this method throws. This vector corresponds to the exceptions vector. The first element of this vector is the name of the first element of the exceptions vector, etc.- Returns:
- all exceptions thrown by this method
-
addContext
public void addContext(java.lang.String context)
-
contexts
public java.util.Vector<java.lang.String> contexts()
This is a vector of strings, each of which is the name of a context.- Returns:
- name of contexts
-
addParameter
public void addParameter(ParameterEntry parameter)
Add a parameter to the parameter list. This function should be called for the parameters in the order the parameters appear on the method.- Parameters:
parameter
- ParameterEntry to add
-
parameters
public java.util.Vector<ParameterEntry> parameters()
This is a vector of ParameterEntry's. They are the parameters on this method and their order in the vector is the order they appear on the method.- Returns:
Vector
of parameters
-
oneway
public void oneway(boolean yes)
Is this a oneway method?- Parameters:
yes
- true if this is a oneway method
-
oneway
public boolean oneway()
Is this a oneway method?- Returns:
- true if oneway
-
valueMethod
public void valueMethod(boolean yes)
Is this a value method?- Parameters:
yes
- true if this a value method
-
valueMethod
public boolean valueMethod()
Is this a value method?- Returns:
- true if this is a value method
-
exceptionsAddElement
void exceptionsAddElement(ExceptionEntry e)
-
-