|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acm.seguin.summary.Summary
public abstract class Summary
Basic summary class. Provides a single point for a visitor to encounter and a parent summary. All summaries have a parent except package summaries.
| Field Summary | |
|---|---|
protected int |
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 | |
|---|---|
Summary(Summary initParent)
Create a summary object |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(SummaryVisitor visitor,
java.lang.Object data)
Provide method to visit a node |
void |
addModifier(java.lang.String mod)
Add a modifier |
void |
copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source)
Copies the modifiers from another source |
int |
getDeclarationLine()
Gets the DeclarationLine attribute of the MethodSummary object |
int |
getEndLine()
Gets the EndLine attribute of the Summary object |
int |
getModifiers()
Gets the modifier bits |
java.lang.String |
getModifiersString(int code)
Returns a string containing all the modifiers |
abstract java.lang.String |
getName()
Returns the name |
Summary |
getParent()
Return the parent object |
int |
getStartLine()
Gets the StartLine attribute of the Summary object |
boolean |
isAbstract()
Determine if the object is abstract |
boolean |
isExplicit()
Determine if the object is explicit |
boolean |
isFinal()
Determine if the object is final |
boolean |
isInterface()
Determine if the object is interface |
boolean |
isNative()
Determine if the object is native |
boolean |
isPackage()
Determines if this has package scope |
boolean |
isPrivate()
Determine if the object is private |
boolean |
isProtected()
Determine if the object is protected |
boolean |
isPublic()
Determine if the object is public |
boolean |
isStatic()
Determine if the object is static |
boolean |
isStrictFP()
Determine if the object is strictFP |
boolean |
isSynchronized()
Determine if the object is synchronized |
boolean |
isTransient()
Determine if the object is transient |
boolean |
isVolatile()
Determine if the object is volatile |
void |
setAbstract()
Sets the abstract bit (to true) in the modifiers |
void |
setAbstract(boolean value)
Sets the abstract bit in the modifiers |
protected void |
setCode(boolean value,
int code)
Sets or resets a single bit in the modifiers |
protected void |
setEndLine(int value)
Sets the EndLine attribute of the Summary object |
void |
setFinal()
Sets the Final bit (to true) of the in the modifiers |
void |
setModifiers(int modifiers)
Sets the modifier bits |
void |
setPrivate()
Sets the private bit (to true) in the modifiers |
void |
setPrivate(boolean value)
Sets the private bit in the modifiers |
void |
setProtected()
Sets the protected bit (to true) in the modifiers |
void |
setProtected(boolean value)
Sets the protected bit in the modifiers |
void |
setPublic()
Sets the public bit (to true) in the modifiers |
void |
setPublic(boolean value)
Sets the public bit in the modifiers |
protected void |
setStartLine(int value)
Sets the StartLine attribute of the Summary object |
void |
setStatic()
Sets the Static bit (to true) in the modifiers |
void |
setStatic(boolean value)
Sets the Static bit in the modifiers |
void |
setStrict()
Sets the StrictFP bit (to true) of the in the modifiers |
void |
setSynchronized()
Sets the Synchronized bit (to true) in the modifiers |
void |
setSynchronized(boolean value)
Sets the Synchronized bit in the modifiers |
java.lang.String |
toStandardOrderString()
Convert the object to a string |
java.lang.String |
toStringAlphabetical()
Convert the object to a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int modifiers
| Constructor Detail |
|---|
public Summary(Summary initParent)
initParent - the parent| Method Detail |
|---|
public Summary getParent()
public int getStartLine()
public int getEndLine()
public int getDeclarationLine()
public abstract java.lang.String getName()
public java.lang.Object accept(SummaryVisitor visitor,
java.lang.Object data)
visitor - the visitordata - the data for the visit
protected void setStartLine(int value)
value - The new StartLine valueprotected void setEndLine(int value)
value - The new EndLine valuepublic void setPrivate(boolean value)
setPrivate in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - true if we are setting the private modifierpublic void setPrivate()
setPrivate in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setProtected(boolean value)
setProtected in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - true if we are setting the protected modifierpublic void setProtected()
setProtected in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setPublic(boolean value)
setPublic in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - true if we are setting the public modifierpublic void setPublic()
setPublic in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setAbstract(boolean value)
setAbstract in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - true if we are setting the modifierpublic void setAbstract()
setAbstract in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setSynchronized(boolean value)
setSynchronized in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - The new Synchronized valuepublic void setSynchronized()
setSynchronized in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setStatic(boolean value)
setStatic in interface net.sourceforge.jrefactory.ast.ModifierHoldervalue - The new Static valuepublic void setStatic()
setStatic in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setFinal()
setFinal in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setStrict()
setStrict in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isAbstract()
isAbstract in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isExplicit()
isExplicit in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isFinal()
isFinal in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isInterface()
isInterface in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isNative()
isNative in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isPrivate()
isPrivate in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isProtected()
isProtected in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isPublic()
isPublic in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isStatic()
isStatic in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isStrictFP()
isStrictFP in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isSynchronized()
isSynchronized in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isTransient()
isTransient in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isVolatile()
isVolatile in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic boolean isPackage()
isPackage in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void addModifier(java.lang.String mod)
addModifier in interface net.sourceforge.jrefactory.ast.ModifierHoldermod - the new modifierpublic java.lang.String toStringAlphabetical()
public java.lang.String toStandardOrderString()
public void copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source)
copyModifiers in interface net.sourceforge.jrefactory.ast.ModifierHoldersource - the source
protected void setCode(boolean value,
int code)
value - true if we are setting the bitcode - The new Code valuepublic int getModifiers()
getModifiers in interface net.sourceforge.jrefactory.ast.ModifierHolderpublic void setModifiers(int modifiers)
setModifiers in interface net.sourceforge.jrefactory.ast.ModifierHoldermodifiers - the modifier bitspublic java.lang.String getModifiersString(int code)
code - the code used to determine the order of the modifiers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||