| |
|
| java.lang.Object org.acm.seguin.summary.Summary org.acm.seguin.summary.MethodSummary
MethodSummary | public class MethodSummary extends Summary (Code) | | Stores information about a method
author: Chris Seguin |
MethodSummary | public MethodSummary(Summary parent)(Code) | | Construct a method from a method declaration node
Parameters: parent - Description of Parameter |
accept | public Object accept(SummaryVisitor visitor, Object data)(Code) | | Provide method to visit a node
Parameters: visitor - the visitor Parameters: data - the data for the visit some new data |
add | protected void add(TypeDeclSummary except)(Code) | | Add the formal parameters
Parameters: except - Description of Parameter |
add | protected void add(ParameterSummary param)(Code) | | Add the formal parameters
Parameters: param - the next formal parameter |
addDependency | protected void addDependency(Summary dependsOn)(Code) | | Adds a variable dependency
Parameters: dependsOn - a variable that this method is depending on - localvariable or something in an anonymous class. |
beginBlock | public void beginBlock()(Code) | | Notes to the method summary that there is a block in the code
|
checkSignature | public boolean checkSignature(MethodSummary other)(Code) | | Determines if their signatures are the same
Parameters: other - the oether method true if they have the same signatures |
endBlock | public void endBlock()(Code) | | Notes to the method summary that the block in the code is complete
|
equals | public boolean equals(Object other)(Code) | | Description of the Method
Parameters: other - Description of Parameter Description of the Returned Value |
getDeclarationLine | public int getDeclarationLine()(Code) | | Gets the DeclarationLine attribute of the MethodSummary object
The DeclarationLine value |
getDependencies | public Iterator getDependencies()(Code) | | Return a list of dependencies. This list will contain variable summaries
and type decl summaries.
a list of dependencies. |
getExceptions | public Iterator getExceptions()(Code) | | Get a list of execeptions
an iterator full of exceptions |
getMaxBlockDepth | public int getMaxBlockDepth()(Code) | | Returns the maximum levels of blocks in a certain code
The MaxBlockDepth value |
getName | public String getName()(Code) | | Return the name
the name of the method |
getParameterCount | public int getParameterCount()(Code) | | Return the number of parameters
the count of parameters to this method |
getParameters | public Iterator getParameters()(Code) | | Get a list of parameters
an iterator over the parameters |
getReturnType | public TypeDeclSummary getReturnType()(Code) | | Get the return
the return type. For a constructor, this value is null. |
getStatementCount | public int getStatementCount()(Code) | | Get the statement count
the number of statements in the method |
incrStatementCount | public void incrStatementCount()(Code) | | Increments the statement count
|
isConstructor | public boolean isConstructor()(Code) | | Determine if this is a constructor
The Constructor value |
isInitializer | public boolean isInitializer()(Code) | | Determines if this is really a method or an initializer
true if it is an initializer |
isNearMiss | public boolean isNearMiss(MethodSummary other)(Code) | | Gets the NearMiss attribute of the MethodSummary object
Parameters: other - Description of Parameter The NearMiss value |
setDeclarationLine | public void setDeclarationLine(int value)(Code) | | Sets the DeclarationLine attribute of the MethodSummary object
Parameters: value - The new DeclarationLine value |
setName | public void setName(String newName)(Code) | | Set the name
Parameters: newName - the name of the method |
setReturnType | public void setReturnType(TypeDeclSummary type)(Code) | | Set the return
Parameters: type - the return type. For a constructor, this value is null. |
toString | public String toString()(Code) | | Convert this to a string
a string representation of this object |
Fields inherited from org.acm.seguin.summary.Summary | protected int modifiers(Code)(Java Doc)
|
|
|
|