|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.summary.Summary
org.acm.seguin.summary.MethodSummary
public class MethodSummary
Stores information about a method
Field Summary |
---|
Fields inherited from class org.acm.seguin.summary.Summary |
---|
modifiers |
Fields inherited from interface net.sourceforge.jrefactory.ast.ModifierHolder |
---|
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Constructor Summary | |
---|---|
MethodSummary(Summary parent)
Construct a method from a method declaration node |
Method Summary | |
---|---|
java.lang.Object |
accept(SummaryVisitor visitor,
java.lang.Object data)
Provide method to visit a node |
protected void |
add(ParameterSummary param)
Add the formal parameters |
protected void |
add(TypeDeclSummary except)
Add the formal parameters |
protected void |
addDependency(Summary dependsOn)
Adds a variable dependency |
void |
beginBlock()
Notes to the method summary that there is a block in the code |
boolean |
checkSignature(MethodSummary other)
Determines if their signatures are the same |
void |
endBlock()
Notes to the method summary that the block in the code is complete |
boolean |
equals(java.lang.Object other)
Description of the Method |
int |
getDeclarationLine()
Gets the DeclarationLine attribute of the MethodSummary object |
java.util.Iterator |
getDependencies()
Return a list of dependencies. |
java.util.Iterator |
getExceptions()
Get a list of execeptions |
int |
getMaxBlockDepth()
Returns the maximum levels of blocks in a certain code |
java.lang.String |
getName()
Return the name |
int |
getParameterCount()
Return the number of parameters |
java.util.Iterator |
getParameters()
Get a list of parameters |
TypeDeclSummary |
getReturnType()
Get the return |
int |
getStatementCount()
Get the statement count |
void |
incrStatementCount()
Increments the statement count |
boolean |
isConstructor()
Determine if this is a constructor |
boolean |
isInitializer()
Determines if this is really a method or an initializer |
boolean |
isNearMiss(MethodSummary other)
Gets the NearMiss attribute of the MethodSummary object |
void |
setDeclarationLine(int value)
Sets the DeclarationLine attribute of the MethodSummary object |
void |
setName(java.lang.String newName)
Set the name |
void |
setReturnType(TypeDeclSummary type)
Set the return |
java.lang.String |
toString()
Convert this to a string |
Methods inherited from class org.acm.seguin.summary.Summary |
---|
addModifier, copyModifiers, getEndLine, getModifiers, getModifiersString, getParent, getStartLine, isAbstract, isExplicit, isFinal, isInterface, isNative, isPackage, isPrivate, isProtected, isPublic, isStatic, isStrictFP, isSynchronized, isTransient, isVolatile, setAbstract, setAbstract, setCode, setEndLine, setFinal, setModifiers, setPrivate, setPrivate, setProtected, setProtected, setPublic, setPublic, setStartLine, setStatic, setStatic, setStrict, setSynchronized, setSynchronized, toStandardOrderString, toStringAlphabetical |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodSummary(Summary parent)
parent
- Description of ParameterMethod Detail |
---|
public void setName(java.lang.String newName)
newName
- the name of the methodpublic void setReturnType(TypeDeclSummary type)
type
- the return type. For a constructor, this value is null.public void setDeclarationLine(int value)
value
- The new DeclarationLine valuepublic java.lang.String getName()
getName
in class Summary
public TypeDeclSummary getReturnType()
public java.util.Iterator getExceptions()
public java.util.Iterator getParameters()
public int getParameterCount()
public java.util.Iterator getDependencies()
public int getStatementCount()
public boolean isNearMiss(MethodSummary other)
other
- Description of Parameter
public boolean isInitializer()
public int getMaxBlockDepth()
public int getDeclarationLine()
getDeclarationLine
in class Summary
public boolean isConstructor()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(SummaryVisitor visitor, java.lang.Object data)
accept
in class Summary
visitor
- the visitordata
- the data for the visit
public void incrStatementCount()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- Description of Parameter
public void beginBlock()
public void endBlock()
public boolean checkSignature(MethodSummary other)
other
- the oether method
protected void add(TypeDeclSummary except)
except
- Description of Parameterprotected void add(ParameterSummary param)
param
- the next formal parameterprotected void addDependency(Summary dependsOn)
dependsOn
- a variable that this method is depending on - local
variable or something in an anonymous class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |