|
||||||||||
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.TypeSummary
public class TypeSummary
Stores the summary of a type (either class or interface)
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 | |
---|---|
TypeSummary(Summary parentSummary,
net.sourceforge.jrefactory.ast.SimpleNode typeDecl)
Creates a TypeSummary object |
Method Summary | |
---|---|
java.lang.Object |
accept(SummaryVisitor visitor,
java.lang.Object data)
Provide method to visit a node |
protected void |
add(FieldSummary fieldSummary)
Add a field summary |
protected void |
add(MethodSummary methodSummary)
Add a method summary |
protected void |
add(TypeDeclSummary typeDeclSummary)
Add an interface summary |
protected void |
add(TypeSummary typeSummary)
Add a type summary |
FieldSummary |
getField(java.lang.String name)
Gets a field by a name |
int |
getFieldCount()
Get the total number of fields - class and instance - that are associated with this object. |
java.util.Iterator |
getFields()
Return a list of fields |
java.util.Iterator |
getImplementedInterfaces()
Return a list of the types that this class/interface implements |
int |
getMethodCount()
Get the total number of methods - class and instance - that are associated with this object. |
java.util.Iterator |
getMethods()
Return the list of methods |
java.lang.String |
getName()
Get the name of this object |
PackageSummary |
getPackageSummary()
Finds the package summary associated with this type |
TypeDeclSummary |
getParentClass()
Return the parent class |
int |
getTypeCount()
Get the total number of nested class and interface declarations that are associated with this object. |
java.util.Iterator |
getTypes()
Return the iterator over the types |
boolean |
isInterface()
Check to see if this is an interface or a class |
void |
setName(java.lang.String newName)
Set the name of this object |
java.lang.String |
toString()
Convert this object to a string |
Methods inherited from class org.acm.seguin.summary.Summary |
---|
addModifier, copyModifiers, getDeclarationLine, getEndLine, getModifiers, getModifiersString, getParent, getStartLine, isAbstract, isExplicit, isFinal, 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 |
Constructor Detail |
---|
public TypeSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.SimpleNode typeDecl)
parentSummary
- the parent summarytypeDecl
- the type declarationMethod Detail |
---|
public void setName(java.lang.String newName)
newName
- the namepublic boolean isInterface()
isInterface
in interface net.sourceforge.jrefactory.ast.ModifierHolder
isInterface
in class Summary
public java.lang.String getName()
getName
in class Summary
public java.util.Iterator getMethods()
public int getMethodCount()
public java.util.Iterator getFields()
public int getFieldCount()
public java.util.Iterator getTypes()
public int getTypeCount()
public java.util.Iterator getImplementedInterfaces()
public TypeDeclSummary getParentClass()
public PackageSummary getPackageSummary()
public FieldSummary getField(java.lang.String name)
name
- the name of the field
public java.lang.Object accept(SummaryVisitor visitor, java.lang.Object data)
accept
in class Summary
visitor
- the visitordata
- the data for the visit
public java.lang.String toString()
toString
in class java.lang.Object
protected void add(MethodSummary methodSummary)
methodSummary
- the method summaryprotected void add(FieldSummary fieldSummary)
fieldSummary
- the field summaryprotected void add(TypeSummary typeSummary)
typeSummary
- the type summaryprotected void add(TypeDeclSummary typeDeclSummary)
typeDeclSummary
- the interface summary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |