|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dpt.symbtab.Definition | +--dpt.symbtab.ScopedDef | +--dpt.symbtab.MethodDef
A definition of a method in a class
Field Summary | |
private JavaVector |
exceptions
A list of exceptions that can be thrown |
private java.util.Vector |
modifiers
|
private JavaVector |
parameters
A list of formal parameters to the method |
private Definition |
type
The return type of the method |
Fields inherited from class dpt.symbtab.ScopedDef |
elements,
iAmDefaultOrBaseScope,
unresolvedStuff |
Fields inherited from class dpt.symbtab.Definition |
definition,
name,
parentScope,
references,
ST_CL,
ST_FU,
ST_FU_EXT,
ST_IF,
ST_IMPL,
ST_IMPORT,
ST_PAC,
ST_SUB,
ST_SUPER,
ST_VAR |
Constructor Summary | |
(package private) |
MethodDef(java.lang.String name,
Occurrence occ,
ClassDef type,
ScopedDef parentScope)
Constructor to create a method definition object |
(package private) |
MethodDef(java.lang.String name,
Occurrence occ,
ClassDef type,
ScopedDef parentScope,
java.util.Vector modifiers)
Constructor to create a method definition object |
Method Summary | |
(package private) void |
add(ClassDef excep)
Add a thrown exception to the method's exception list |
(package private) void |
add(VariableDef param)
Add a parameter to the method's parameter list |
java.lang.String |
GetItem(int TypID)
|
java.util.Vector |
GetItems(int TypID,
java.lang.String modifier)
|
java.lang.String |
GetLocation(int TypID,
java.lang.String sName)
|
(package private) int |
getParamCount()
Find out how many parameters this method has |
Definition |
getType()
Return the return type of the method |
(package private) Definition |
lookup(java.lang.String name,
int numParams)
lookup the name as a local variable or local class in this class |
void |
report(IndentingPrintWriter out)
Write information about this method to the report |
(package private) void |
resolveTypes(SymbolTable symbolTable)
Resolve references to other symbols for pass 2 |
(package private) void |
setExceptions(JavaVector exceptions)
set the list of exceptions that this method can throw |
Methods inherited from class dpt.symbtab.ScopedDef |
add,
addUnresolved,
GetListItems,
GetStringItems,
GetStringLocation,
hasElements,
isDefaultOrBaseScope,
reportElements,
setDefaultOrBaseScope |
Methods inherited from class dpt.symbtab.Definition |
addReference,
ExtractClass,
ExtractClass,
ExtractName,
ExtractPackage,
ExtractPackage,
getDef,
getName,
getOccurrence,
getParentScope,
getQualifiedName,
GetReferences,
isSuperClassOf,
listReferences,
lookup,
setParentScope,
toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Definition type
private JavaVector parameters
private JavaVector exceptions
private java.util.Vector modifiers
Constructor Detail |
MethodDef(java.lang.String name, Occurrence occ, ClassDef type, ScopedDef parentScope, java.util.Vector modifiers)
MethodDef(java.lang.String name, Occurrence occ, ClassDef type, ScopedDef parentScope)
Method Detail |
void add(ClassDef excep)
void add(VariableDef param)
int getParamCount()
public Definition getType()
Definition lookup(java.lang.String name, int numParams)
public java.lang.String GetLocation(int TypID, java.lang.String sName)
public java.lang.String GetItem(int TypID)
public java.util.Vector GetItems(int TypID, java.lang.String modifier)
public void report(IndentingPrintWriter out)
void resolveTypes(SymbolTable symbolTable)
void setExceptions(JavaVector exceptions)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |