ca.ubc.cs.elide.nodes
Class ModifierBearingNode

java.lang.Object
  |
  +--ca.ubc.cs.elide.nodes.ParseNode
        |
        +--ca.ubc.cs.elide.nodes.ChildBearingNode
              |
              +--ca.ubc.cs.elide.nodes.ModifierBearingNode
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
ClassNode, CodeBearingNode, FieldNode, ParameterNode

public abstract class ModifierBearingNode
extends ChildBearingNode

ModifierBearingNode is an abstract class, representing a Java element that can have modifiers such as public and synchronized attached to it.

See Also:
Serialized Form

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

ModifierBearingNode

public ModifierBearingNode()

ModifierBearingNode

public ModifierBearingNode(java.lang.String name)
Method Detail

getModifiers

public int getModifiers()
Returns the modifiers attached to this node, as an integer. Use Modifier to decode.

makeDefaultAccess

public void makeDefaultAccess()
Sets the access on this node to the default (package) access. Removes any other access modifiers.

makePublic

public void makePublic()
Sets the access on this node to public access. Removes any other access modifiers.

makePrivate

public void makePrivate()
Sets the access on this node to private access. Removes any other access modifiers.

makeProtected

public void makeProtected()
Sets the access on this node to protected access. Removes any other access modifiers.

setStatic

public void setStatic(boolean b)
Sets the static property of this node; true to add static, false to remove it.

setSynchronized

public void setSynchronized(boolean b)
Sets the synchronized property of this node; true to add synchronized, false to remove it.

setNative

public void setNative(boolean b)
Sets the native property of this node; true to add native, false to remove it.

setFinal

public void setFinal(boolean b)
Sets the static property of this node; true to add static, false to remove it.

setTransient

public void setTransient(boolean b)
Sets the static property of this node; true to add static, false to remove it.

setVolatile

public void setVolatile(boolean b)
Sets the static property of this node; true to add static, false to remove it.

setAbstract

public void setAbstract(boolean b)
Sets the static property of this node; true to add static, false to remove it.