|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ca.ubc.cs.elide.nodes.ParseNode | +--ca.ubc.cs.elide.nodes.ChildBearingNode | +--ca.ubc.cs.elide.nodes.ModifierBearingNode
ModifierBearingNode
is an abstract class, representing a Java element that can have modifiers such
as public
and synchronized
attached to it.
Constructor Summary | |
ModifierBearingNode()
|
|
ModifierBearingNode(java.lang.String name)
|
Method Summary | |
int |
getModifiers()
Returns the modifiers attached to this node, as an integer. |
void |
makeDefaultAccess()
Sets the access on this node to the default (package) access. |
void |
makePrivate()
Sets the access on this node to private access. |
void |
makeProtected()
Sets the access on this node to protected access. |
void |
makePublic()
Sets the access on this node to public access. |
void |
setAbstract(boolean b)
Sets the static property of this node; true to add static ,
false to remove it. |
void |
setFinal(boolean b)
Sets the static property of this node; true to add static ,
false to remove it. |
void |
setNative(boolean b)
Sets the native property of this node; true to add native ,
false to remove it. |
void |
setStatic(boolean b)
Sets the static property of this node; true to add static ,
false to remove it. |
void |
setSynchronized(boolean b)
Sets the synchronized property of this node; true to add synchronized ,
false to remove it. |
void |
setTransient(boolean b)
Sets the static property of this node; true to add static ,
false to remove it. |
void |
setVolatile(boolean b)
Sets the static property of this node; true to add static ,
false to remove it. |
Methods inherited from class ca.ubc.cs.elide.nodes.ChildBearingNode |
add, add, addTransform, clone, getChildren, remove |
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode |
findType, get, getComment, getDeclaringClass, getName, getPackage, getParent, getRoot, put, registerType, setComment, setName, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModifierBearingNode()
public ModifierBearingNode(java.lang.String name)
Method Detail |
public int getModifiers()
Modifier
to decode.public void makeDefaultAccess()
public void makePublic()
public void makePrivate()
public void makeProtected()
public void setStatic(boolean b)
static
property of this node; true
to add static
,
false
to remove it.public void setSynchronized(boolean b)
synchronized
property of this node; true
to add synchronized
,
false
to remove it.public void setNative(boolean b)
native
property of this node; true
to add native
,
false
to remove it.public void setFinal(boolean b)
static
property of this node; true
to add static
,
false
to remove it.public void setTransient(boolean b)
static
property of this node; true
to add static
,
false
to remove it.public void setVolatile(boolean b)
static
property of this node; true
to add static
,
false
to remove it.public void setAbstract(boolean b)
static
property of this node; true
to add static
,
false
to remove it.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |