| java.lang.Object org.acm.seguin.summary.Summary org.acm.seguin.summary.TypeDeclSummary
TypeDeclSummary | public class TypeDeclSummary extends Summary (Code) | | 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.
author: Chris Seguin |
TypeDeclSummary | public TypeDeclSummary(Summary parentSummary)(Code) | | Creates a type declaration summary.
Parameters: parentSummary - the parent summary |
TypeDeclSummary | public TypeDeclSummary(Summary parentSummary, ASTName nameNode)(Code) | | Creates a type declaration summary from an ASTName object.
Parameters: parentSummary - the parent summary Parameters: nameNode - the ASTName object |
TypeDeclSummary | public TypeDeclSummary(Summary parentSummary, ASTReferenceType refNode)(Code) | | Creates a type declaration summary from an ASTReferenceType object.
Parameters: parentSummary - the parent summary Parameters: nameNode - the ASTName object |
TypeDeclSummary | public TypeDeclSummary(Summary parentSummary, ASTPrimitiveType primitiveType)(Code) | | Creates a type declaration summary from an ASTPrimitiveType object.
Parameters: parentSummary - the parent summary Parameters: primitiveType - the ASTPrimitiveType object |
TypeDeclSummary | public TypeDeclSummary(Summary parentSummary, String initPackage, String initType)(Code) | | Creates a type declaration summary from an ASTName object.
Parameters: parentSummary - the parent summary Parameters: initPackage - the package name Parameters: initType - the type name |
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 |
equals | public boolean equals(Object other)(Code) | | Check to see if it is equal
Parameters: other - the other item true if they are equal |
getArrayCount | public int getArrayCount()(Code) | | Return the number of "[]" pairs
the array count |
getLongName | public String getLongName()(Code) | | Get long name
the long version of the name (type + package) |
getName | public String getName()(Code) | | Gets the name attribute of the TypeDeclSummary object
The name value |
getPackage | public String getPackage()(Code) | | Get the package name
a string containing the name of the package |
getType | public String getType()(Code) | | Get the name of the type
a string containing the name of the type |
getTypeDeclSummary | public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, ASTType typeNode)(Code) | | Factory method. Creates a type decl summary object from the type node.
Parameters: parentSummary - the parent summary Parameters: typeNode - the AST node containing the type the new node |
getTypeDeclSummary | public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, ASTReferenceType typeNode)(Code) | | Factory method. Creates a type decl summary object from the type node.
Parameters: parentSummary - the parent summary Parameters: typeNode - the AST node containing the type the new node |
getTypeDeclSummary | public static TypeDeclSummary getTypeDeclSummary(Summary parentSummary, ASTResultType typeNode)(Code) | | Factory method. Creates a type decl summary object from the type node.
Parameters: parentSummary - the parent summary Parameters: typeNode - the AST node containing the result type the new node |
isArray | public boolean isArray()(Code) | | Is this an array?
true if this is an array |
isPrimitive | public boolean isPrimitive()(Code) | | Check if this is a primitive node
true if this is a primitive value |
isSame | public boolean isSame(TypeDeclSummary other)(Code) | | Gets the same attribute of the TypeDeclSummary object
Parameters: other - Description of the Parameter The same value |
setArrayCount | public void setArrayCount(int count)(Code) | | Set the array count
Parameters: count - the number of "[]" pairs |
toString | public String toString()(Code) | | Convert this into a string
a string representation of the type |
Fields inherited from org.acm.seguin.summary.Summary | protected int modifiers(Code)(Java Doc)
|
|
|