|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeffpalm.javaparser.SimpleNode
com.jeffpalm.javaparser.AccessNode
public class AccessNode
This class is the base for all Nodes that contain modifiers ("public", "native", etc.).
Field Summary | |
---|---|
static int |
ALPHABETICAL_ORDER
Description of the Field |
protected int |
modifiers
Description of the Field |
static int |
STANDARD_ORDER
Description of the Field |
Fields inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
children, id, parent, parser, specials |
Fields inherited from interface com.jeffpalm.javaparser.ModifierHolder |
---|
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Constructor Summary | |
---|---|
AccessNode(int identifier)
Constructor for the AccessNode object Access nodes are not designed to be constructed directly. |
|
AccessNode(JavaParser parser,
int identifier)
Constructor for the AccessNode object. |
Method Summary | |
---|---|
void |
addModifier(java.lang.String mod)
Add a modifier |
void |
copyModifiers(ModifierHolder source)
Copies the modifiers from another source |
boolean |
equalModifiers(java.lang.Object obj)
Compare the modifiers of these two nodes. |
int |
getModifiers()
Gets the modifier bits |
java.lang.String |
getModifiersString(int code)
Returns a string containing all the modifiers |
boolean |
isAbstract()
Determine if the node is abstract |
boolean |
isExplicit()
Determine if the node is explicit |
boolean |
isFinal()
Determine if the node is final |
boolean |
isInterface()
Determine if the node is interface |
boolean |
isNative()
Determine if the node is native |
boolean |
isPackage()
Determines if this has package scope |
boolean |
isPrivate()
Determine if the node is private |
boolean |
isProtected()
Determine if the node is protected |
boolean |
isPublic()
Determine if the node is public |
boolean |
isStatic()
Determine if the node is static |
boolean |
isStrictFP()
Determine if the node is strictFP |
boolean |
isSynchronized()
Determine if the node is synchronized |
boolean |
isTransient()
Determine if the node is transient |
boolean |
isVolatile()
Determine if the node is volatile |
protected java.lang.String |
printModifiers()
Description of the Method |
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 |
void |
setFinal()
Sets the Final bit (to true ) of the in the modifiers |
void |
setInterface()
Sets the Final bit (to true ) of the in the modifiers |
void |
setModifiers(int modifiers)
Sets the modifier bits |
void |
setNative()
Sets the Final bit (to true ) of the in the modifiers |
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 |
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 |
void |
setTransient()
Sets the Final bit (to true ) of the in the modifiers |
void |
setVolatile()
Sets the Final bit (to true ) of the in the modifiers |
int |
skipAnnotations()
|
int |
skipAnnotationsAndTypeParameters()
|
java.lang.String |
toStandardOrderString()
Convert the node to a string |
java.lang.String |
toStringAlphabetical()
Convert the node to a string |
Methods inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
addSpecial, childrenAccept, dump, dumpString, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getName, getScope, getSpecial, hasAnyChildren, init, isRequired, jjtAccept, jjtAddChild, jjtAddFirstChild, jjtClose, jjtDeleteChild, jjtGetChild, jjtGetFirstChild, jjtGetID, jjtGetNumChildren, jjtGetParent, jjtInsertChild, jjtOpen, jjtSetParent, removeSpecial, setLineAndColumnInfo, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int modifiers
public static final int ALPHABETICAL_ORDER
public static final int STANDARD_ORDER
Constructor Detail |
---|
public AccessNode(JavaParser parser, int identifier)
parser
- Description of Parameteridentifier
- Description of Parameterpublic AccessNode(int identifier)
identifier
- Description of ParameterMethod Detail |
---|
public void setPrivate(boolean value)
setPrivate
in interface ModifierHolder
value
- true
if we are setting the private modifierpublic void setPrivate()
true
) in the modifiers
setPrivate
in interface ModifierHolder
public void setProtected(boolean value)
setProtected
in interface ModifierHolder
value
- true
if we are setting the protected modifierpublic void setProtected()
true
) in the modifiers
setProtected
in interface ModifierHolder
public void setPublic(boolean value)
setPublic
in interface ModifierHolder
value
- true
if we are setting the public modifierpublic void setPublic()
true
) in the modifiers
setPublic
in interface ModifierHolder
public void setAbstract(boolean value)
setAbstract
in interface ModifierHolder
value
- true
if we are setting the modifierpublic void setAbstract()
true
) in the modifiers
setAbstract
in interface ModifierHolder
public void setSynchronized(boolean value)
setSynchronized
in interface ModifierHolder
value
- The new Synchronized valuepublic void setSynchronized()
true
) in the modifiers
setSynchronized
in interface ModifierHolder
public void setStatic(boolean value)
setStatic
in interface ModifierHolder
value
- The new Static valuepublic void setStatic()
true
) in the modifiers
setStatic
in interface ModifierHolder
public void setFinal()
true
) of the in the modifiers
setFinal
in interface ModifierHolder
public void setVolatile()
true
) of the in the modifiers
public void setTransient()
true
) of the in the modifiers
public void setNative()
true
) of the in the modifiers
public void setInterface()
true
) of the in the modifiers
public void setStrict()
true
) of the in the modifiers
setStrict
in interface ModifierHolder
public void setModifiers(int modifiers)
setModifiers
in interface ModifierHolder
modifiers
- the modifier bitspublic boolean isAbstract()
isAbstract
in interface ModifierHolder
true
if this stores an ABSTRACT flagpublic boolean isExplicit()
isExplicit
in interface ModifierHolder
true
if this stores an EXPLICIT flagpublic boolean isFinal()
isFinal
in interface ModifierHolder
true
if this stores an FINAL flagpublic boolean isInterface()
isInterface
in interface ModifierHolder
true
if this stores an INTERFACE flagpublic boolean isNative()
isNative
in interface ModifierHolder
true
if this stores an NATIVE flagpublic boolean isPrivate()
isPrivate
in interface ModifierHolder
true
if this stores an PRIVATE flagpublic boolean isProtected()
isProtected
in interface ModifierHolder
true
if this stores an PROTECTED flagpublic boolean isPublic()
isPublic
in interface ModifierHolder
true
if this stores an PUBLIC flagpublic boolean isStatic()
isStatic
in interface ModifierHolder
true
if this stores an static flagpublic boolean isStrictFP()
isStrictFP
in interface ModifierHolder
true
if this stores an STRICTFP flagpublic boolean isSynchronized()
isSynchronized
in interface ModifierHolder
true
if this stores an SYNCHRONIZED flagpublic boolean isTransient()
isTransient
in interface ModifierHolder
true
if this stores an TRANSIENT flagpublic boolean isVolatile()
isVolatile
in interface ModifierHolder
true
if this stores an VOLATILE flagpublic boolean isPackage()
isPackage
in interface ModifierHolder
true
if this has package scopepublic int getModifiers()
getModifiers
in interface ModifierHolder
public java.lang.String getModifiersString(int code)
code
- the code used to determine the order of the modifiers
public void addModifier(java.lang.String mod)
addModifier
in interface ModifierHolder
mod
- the new modifierpublic java.lang.String toStringAlphabetical()
public java.lang.String toStandardOrderString()
public void copyModifiers(ModifierHolder source)
copyModifiers
in interface ModifierHolder
source
- the sourcepublic boolean equalModifiers(java.lang.Object obj)
obj
- the other node.
true
if they are the sameprotected void setCode(boolean value, int code)
value
- true
if we are setting the bitcode
- The new Code valueprotected java.lang.String printModifiers()
printModifiers
in class SimpleNode
public int skipAnnotations()
public int skipAnnotationsAndTypeParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |