org.acm.seguin.summary
Class LocalVariableSummary
java.lang.Object
org.acm.seguin.summary.Summary
org.acm.seguin.summary.VariableSummary
org.acm.seguin.summary.LocalVariableSummary
- All Implemented Interfaces:
- java.io.Serializable, net.sourceforge.jrefactory.ast.ModifierHolder
public class LocalVariableSummary
- extends VariableSummary
Stores information about the formal parameter
- Author:
- Chris Seguin
- See Also:
- Serialized Form
Fields inherited from interface net.sourceforge.jrefactory.ast.ModifierHolder |
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Methods inherited from class org.acm.seguin.summary.Summary |
addModifier, copyModifiers, getDeclarationLine, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LocalVariableSummary
public LocalVariableSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTType typeNode,
net.sourceforge.jrefactory.ast.ASTVariableDeclaratorId id)
- Creates a parameter summary
- Parameters:
parentSummary
- the parent summarytypeNode
- the type of parameterid
- the id of the parameter
LocalVariableSummary
public LocalVariableSummary(Summary parentSummary,
TypeDeclSummary type,
java.lang.String name)
- Constructor for the LocalVariableSummary object
- Parameters:
parentSummary
- Description of Parametertype
- Description of Parametername
- Description of Parameter
accept
public java.lang.Object accept(SummaryVisitor visitor,
java.lang.Object data)
- Provide method to visit a node
- Overrides:
accept
in class VariableSummary
- Parameters:
visitor
- the visitordata
- the data for the visit
- Returns:
- some new data
createNew
public static LocalVariableSummary[] createNew(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration field)
- Factory method
- Parameters:
parentSummary
- the parent summaryfield
- the field declarator
- Returns:
- Description of the Returned Value