|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.symboltable.ExtSymbolTable
public class ExtSymbolTable
This class is used as a symbol table for an action/expression extension.
Field Summary | |
---|---|
protected String |
className
The fully qualified Java class name of the module that implements this extension. |
protected Type |
expType
The expression type of this extension. |
protected int |
extDesc
Holds the extension descriptor. |
protected String |
extId
The extension id of this extension. |
protected String |
id
The id of this extension. |
protected boolean |
isAction
Indicates whether this symbol table is used for an action extension (or an expression extension). |
protected Method |
m
Holds the Java method that implements this extension. |
protected Type[] |
paramTypes
The parameter types of this extension. |
protected String[] |
typeVarIds
The type variable ids of this extension. |
protected boolean |
variableParamLength
Indicates whether this extension has a variable length parameter. |
Constructor Summary | |
---|---|
ExtSymbolTable(boolean isAction,
int extDesc,
String extId,
String id,
String className,
String[] typeVarIds,
Type[] paramTypes,
boolean variableParamLength)
Default constructor. |
Method Summary | |
---|---|
void |
dispose()
Remove references. |
String |
getClassName()
Gets the fully qualified Java class name of the module that implements this extension. |
Type |
getExpType()
Gets the expression type of this extension. |
int |
getExtDesc()
Gets this extension descriptor. |
String |
getExtId()
Gets the extension id of this extension. |
String |
getId()
Gets the id of this extension. |
Method |
getMethod()
Gets the Java method that implements this extension. |
Type |
getParameterType(int index)
Gets the parameter type at a certain index. |
int |
getParameterTypeCount()
Gets the number of parameter types. |
int |
getTypeVariableCount()
Gets the number of type variables. |
String |
getTypeVariableId(int index)
Gets the type variable id at a certain index. |
boolean |
isAction()
Determines whether this symbol table is used for an action extension. |
boolean |
isVariableParamLength()
Determines whether this extension has a variable length parameter. |
void |
setExpType(Type type)
Sets the expression type of this extension. |
void |
setMethod(Method method)
Sets the Java method that implements this extension. |
String |
toString()
Returns the String representation of this symbol table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isAction
protected int extDesc
protected String className
protected String extId
protected String id
protected Type expType
protected Type[] paramTypes
protected String[] typeVarIds
protected boolean variableParamLength
protected Method m
Constructor Detail |
---|
public ExtSymbolTable(boolean isAction, int extDesc, String extId, String id, String className, String[] typeVarIds, Type[] paramTypes, boolean variableParamLength)
isAction
- Indicates whether this symbol table is used for an action extension
(or an expression extension)extDesc
- The extension descriptor for this extension.extId
- The extension id of this extension. Must be non-null.id
- The id of this extension. Must be non-null.className
- The fully qualified Java class name of the module that implements this
extension. Must be non-null.typeVarIds
- The type variable ids of this extension. Must be non-null.
Each element must be non-null.paramTypes
- The parameter types of this extension. Must be non-null.
Each element must be non-null.variableParamLength
- Indicates whether this extension has a variable length parameter.Method Detail |
---|
public boolean isAction()
public String getClassName()
public void setExpType(Type type)
type
- The expression type for this extension.
Must be non-null and isAction is false.public Type getExpType()
public int getExtDesc()
public String getExtId()
public String getId()
public void setMethod(Method method)
method
- The Java method that implements this extension.
Must be non-null.public Method getMethod()
public Type getParameterType(int index)
index
- The index of the parameter. Must be between 0 and
getParameterTypeCount() - 1.
public int getParameterTypeCount()
public int getTypeVariableCount()
public String getTypeVariableId(int index)
index
- The index of the type variable.
Must be between 0 and getTypeVariableCount() - 1.
public boolean isVariableParamLength()
public void dispose()
Disposable
dispose
in interface Disposable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |