|
||||||||||
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.TypeDeclSummary
public class TypeDeclSummary
Summarize a type declaration. This object is meant to store the name and package of some type. This will be used in variable summaries, as well as for return values and exceptions.
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 | |
---|---|
TypeDeclSummary(Summary parentSummary)
Creates a type declaration summary. |
|
TypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTName nameNode)
Creates a type declaration summary from an ASTName object. |
|
TypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTPrimitiveType primitiveType)
Creates a type declaration summary from an ASTPrimitiveType object. |
|
TypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTReferenceType refNode)
Creates a type declaration summary from an ASTReferenceType object. |
|
TypeDeclSummary(Summary parentSummary,
java.lang.Class clazz)
|
|
TypeDeclSummary(Summary parentSummary,
java.lang.String initPackage,
java.lang.String initType)
Creates a type declaration summary from an ASTName object. |
Method Summary | |
---|---|
java.lang.Object |
accept(SummaryVisitor visitor,
java.lang.Object data)
Provide method to visit a node |
boolean |
equals(java.lang.Object other)
Check to see if it is equal |
int |
getArrayCount()
Return the number of "[]" pairs |
java.lang.String |
getLongName()
Get long name |
java.lang.String |
getName()
Gets the name attribute of the TypeDeclSummary object |
java.lang.String |
getPackage()
Get the package name |
java.lang.String |
getType()
Get the name of the type |
static TypeDeclSummary |
getTypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTReferenceType typeNode)
Factory method. |
static TypeDeclSummary |
getTypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTResultType typeNode)
Factory method. |
static TypeDeclSummary |
getTypeDeclSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.ASTType typeNode)
Factory method. |
boolean |
isArray()
Is this an array? |
boolean |
isPrimitive()
Check if this is a primitive node |
boolean |
isSame(TypeDeclSummary other)
Gets the same attribute of the TypeDeclSummary object |
void |
setArrayCount(int count)
Set the array count |
java.lang.String |
toString()
Convert this into a string |
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeDeclSummary(Summary parentSummary)
parentSummary
- the parent summarypublic TypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTName nameNode)
parentSummary
- the parent summarynameNode
- the ASTName objectpublic TypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTReferenceType refNode)
parentSummary
- the parent summarynameNode
- the ASTName objectpublic TypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTPrimitiveType primitiveType)
parentSummary
- the parent summaryprimitiveType
- the ASTPrimitiveType objectpublic TypeDeclSummary(Summary parentSummary, java.lang.String initPackage, java.lang.String initType)
parentSummary
- the parent summaryinitPackage
- the package nameinitType
- the type namepublic TypeDeclSummary(Summary parentSummary, java.lang.Class clazz)
Method Detail |
---|
public void setArrayCount(int count)
count
- the number of "[]" pairspublic int getArrayCount()
public boolean isArray()
public java.lang.String getPackage()
public java.lang.String getType()
public boolean isPrimitive()
public java.lang.String getLongName()
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 boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other item
public boolean isSame(TypeDeclSummary other)
other
- Description of the Parameter
public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTType typeNode)
parentSummary
- the parent summarytypeNode
- the AST node containing the type
public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTReferenceType typeNode)
parentSummary
- the parent summarytypeNode
- the AST node containing the type
public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTResultType typeNode)
parentSummary
- the parent summarytypeNode
- the AST node containing the result type
public java.lang.String getName()
getName
in class Summary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |