A B C E F G I M N P R S T W

A

add(int, ParseNode) - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
Adds a child to the children of this ChildBearingNode, at the index specified.
add(ParseNode) - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
Adds a child to the children of this ChildBearingNode
addTransform(TransformNode) - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
Adds a transformation to this ChildBearingNode, and registers this transformation.
args - Variable in class ca.ubc.cs.elide.nodes.TransformNode
 

B

BlockNode - class ca.ubc.cs.elide.nodes.BlockNode.
BlockNode objects represent blocks of Java code in the target system.
BlockNode() - Constructor for class ca.ubc.cs.elide.nodes.BlockNode
 

C

ca.ubc.cs.elide.nodes - package ca.ubc.cs.elide.nodes
 
ChildBearingNode - class ca.ubc.cs.elide.nodes.ChildBearingNode.
ChildBearingNode is an abstract class representing nodes which can act as ancestors of child nodes in the AST.
ChildBearingNode() - Constructor for class ca.ubc.cs.elide.nodes.ChildBearingNode
 
ChildBearingNode(String) - Constructor for class ca.ubc.cs.elide.nodes.ChildBearingNode
 
ClassNode - class ca.ubc.cs.elide.nodes.ClassNode.
ClassNode objects represent classes in the target system.
ClassNode() - Constructor for class ca.ubc.cs.elide.nodes.ClassNode
 
ClassNode(String) - Constructor for class ca.ubc.cs.elide.nodes.ClassNode
 
clone() - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
clone() - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
Returns a deep copy of this ChildBearingNode object.
CodeBearingNode - class ca.ubc.cs.elide.nodes.CodeBearingNode.
CodeBearingNode is an abstract class representing nodes which can contain Java code.
CodeBearingNode() - Constructor for class ca.ubc.cs.elide.nodes.CodeBearingNode
 
CodeBearingNode(String) - Constructor for class ca.ubc.cs.elide.nodes.CodeBearingNode
 
CodeNode - interface ca.ubc.cs.elide.nodes.CodeNode.
An interface used to tag nodes representing code elements.
ConstructorNode - class ca.ubc.cs.elide.nodes.ConstructorNode.
ConstructorNode objects represent constructor methods.
ConstructorNode() - Constructor for class ca.ubc.cs.elide.nodes.ConstructorNode
 
createClass(String) - Static method in class ca.ubc.cs.elide.nodes.NodeFactory
Creates a ClassNode from a String of Java source code defining the class.
createField(String) - Static method in class ca.ubc.cs.elide.nodes.NodeFactory
Creates a FieldNode from a String of Java source code defining the field.
createMethod(String) - Static method in class ca.ubc.cs.elide.nodes.NodeFactory
Creates a MethodNode from a String of Java source code defining the class.
createText(String) - Static method in class ca.ubc.cs.elide.nodes.NodeFactory
Creates a TextNode from a String of Java source code.

E

extend(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Adds new members by describing them in source code.

F

FieldNode - class ca.ubc.cs.elide.nodes.FieldNode.
FieldNode objects represent fields of classes.
FieldNode() - Constructor for class ca.ubc.cs.elide.nodes.FieldNode
 
FieldNode(String, String) - Constructor for class ca.ubc.cs.elide.nodes.FieldNode
 
findBlock(String) - Method in class ca.ubc.cs.elide.nodes.CodeBearingNode
 
findType(String) - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
forName(String, ParseNode) - Static method in class ca.ubc.cs.elide.nodes.ClassNode
Returns the ClassNode object associated with the class or interface with the given string name in the given context.

G

get(Object) - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
getBlocks() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of BlockNode objects reflecting all the static blocks of the class represented by this ClassNode object.
getChildren() - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
Returns all ParseNodes which are children of this ChildBearingNode, as a List.
getClass(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a ClassNode object that reflects the specified inner class or interface of the class represented by this ClassNode object.
getClass(String) - Method in class ca.ubc.cs.elide.nodes.PackageNode
Returns a ClassNode object representing a class contained by this package, given its name.
getClasses() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array containing ClassNode objects representing all the public classes and interfaces that are members of the class represented by this ClassNode object.
getClasses() - Method in class ca.ubc.cs.elide.nodes.PackageNode
Returns an array of ClassNode objects representing the classes contained by this package.
getCodeElements() - Method in class ca.ubc.cs.elide.nodes.CodeBearingNode
Returns the code elements associated with this CodeBearingNode as an array of CodeNodes
getComment() - Method in class ca.ubc.cs.elide.nodes.ParseNode
Returns the comment associated with this item, as a string.
getDeclaredClass(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a ClassNode object reflecting the specified class or interface declared as a member of the class represented by this ClassNode object.
getDeclaredClasses() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of ClassNode objects reflecting all the classes and interfaces declared as members of the class represented by this ClassNode object.
getDeclaredConstructors() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of ConstructorNode objects reflecting all the fields declared by the class or interface represented by this ClassNode object.
getDeclaredField(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a FieldNode object that reflects the specified declared field of the class or interface represented by this ClassNode object.
getDeclaredFields() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of FieldNode objects reflecting all the fields declared by the class or interface represented by this ClassNode object.
getDeclaredMethod(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a Method object that reflects the specified declared method of the class or interface represented by this ClassNode object.
getDeclaredMethods() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of MethodNode objects reflecting all the methods declared by the class or interface represented by this ClassNode object
getDeclaringClass() - Method in class ca.ubc.cs.elide.nodes.ParseNode
Returns the ClassNode object representing the class within which this member was declared.
getDeclaringClass() - Method in class ca.ubc.cs.elide.nodes.PackageNode
Throws a RuntimeException if called - included for compatibility.
getDefaultPackage() - Method in class ca.ubc.cs.elide.nodes.StartNode
Returns a PackageNode representing the default (unnamed) package.
getExceptionTypes() - Method in class ca.ubc.cs.elide.nodes.MethodNode
Returns an array of TypeNode objects, representing the types of exception declared to be thrown from the method represented by this object.
getField(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a FieldNode object that reflects the specified public member field of the class or interface represented by this ClassNode object.
getFields() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array containing FieldNode objects reflecting all the accessible public fields of the class or interface represented by this ClassNode object.
getImports() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of ImportNode objects reflecting all units imported to the class represented by this ClassNode object.
getInitializer() - Method in class ca.ubc.cs.elide.nodes.FieldNode
Returns a String representing the initialization statement for the field represented by this FieldNode object.
getInterfaces() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Determines the interfaces implemented by the class or interface represented by this object.
getMethod() - Method in class ca.ubc.cs.elide.nodes.BlockNode
 
getMethod(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns a MethodNode object that reflects the specified public member method of the class or interface represented by this ClassNode object.
getMethods() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array containing MethodNode objects reflecting all the public member methods of the class or interface represented by this ClassNode object, including those declared by the class or interface and and those inherited from superclasses and superinterfaces.
getModifiers() - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Returns the modifiers attached to this node, as an integer.
getName() - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
getName() - Method in class ca.ubc.cs.elide.nodes.TransformNode
 
getName() - Method in class ca.ubc.cs.elide.nodes.ConstructorNode
Returns a String representing the unqualified name of this ConstructorNode object.
getName() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns the fully-qualified name of the entity (class, interface) represented by this ClassNode object, as a String.
getPackage() - Method in class ca.ubc.cs.elide.nodes.ParseNode
Returns the PackageNode object representing the package within which this item was declared.
getPackage() - Method in class ca.ubc.cs.elide.nodes.PackageNode
Returns this PackageNode object (included for compatibility).
getPackage(String) - Method in class ca.ubc.cs.elide.nodes.StartNode
 
getPackages() - Method in class ca.ubc.cs.elide.nodes.StartNode
Returns an array of PackageNode objects representing the packages contained in this tree
getParameter(String) - Method in class ca.ubc.cs.elide.nodes.MethodNode
Returns a ParameterNode object for a formal parameter of the method represented by this object, given its name.
getParameters() - Method in class ca.ubc.cs.elide.nodes.MethodNode
Returns an array of ParameterNode objects, representing the formal parameters of the method represented by this MethodNode object.
getParent() - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
getReturnType() - Method in class ca.ubc.cs.elide.nodes.MethodNode
Returns the the name of the formal return type of the method represented by this MethodNode object.
getRoot() - Method in class ca.ubc.cs.elide.nodes.ParseNode
Returns the StartNode object at the root of this parse tree.
getShortName() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns the unqualified name of the entity (class, interface) represented by this ClassNode object, as a String.
getStaticBlocks() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array of StaticBlockNode objects reflecting all the static blocks of the class represented by this ClassNode object.
getSubclasses() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array containing String objects representing all the subclasses and subinterfaces of the class represented by this ClassNode object.
getSuperclass() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns the ClassNode representing the superclass of the entity (class, interface) represented by this ClassNode.
getSuperclasses() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns an array containing String objects representing all the superclasses and superinterfaces of the class represented by this ClassNode object.
getSuperclassNode() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Returns the ClassNode representing the superclass of the entity (class, interface, primitive type or void) represented by this ClassNode.
getText() - Method in class ca.ubc.cs.elide.nodes.TextNode
Returns the source code contained by TextNode as a string.
getType() - Method in class ca.ubc.cs.elide.nodes.FieldNode
Returns a String representing the type of the field represented by this FieldNode object.
getType() - Method in class ca.ubc.cs.elide.nodes.ParameterNode
Returns the name of the type of this parameter, as a String.

I

ImportNode - class ca.ubc.cs.elide.nodes.ImportNode.
ImportNode objects represent import statements in a source file, and are associated with all classes defined in the file.
ImportNode() - Constructor for class ca.ubc.cs.elide.nodes.ImportNode
 
ImportNode(String) - Constructor for class ca.ubc.cs.elide.nodes.ImportNode
 
InstanceBlockNode - class ca.ubc.cs.elide.nodes.InstanceBlockNode.
InstanceBlockNode objects represent non-static blocks declared in Java classes.
InstanceBlockNode() - Constructor for class ca.ubc.cs.elide.nodes.InstanceBlockNode
 
invoke(String) - Method in class ca.ubc.cs.elide.nodes.TransformNode
invokes the transform; for internal use
isAssignableFrom(ClassNode) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Determines if the class or interface represented by this ClassNode object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified ClassNode parameter.
isAssignableFrom(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Determines if the class or interface represented by this ClassNode object is either the same as, or is a superclass or superinterface of, the class or interface named by the specified String parameter.
isBodyless() - Method in class ca.ubc.cs.elide.nodes.MethodNode
Returns true if the method represented by this MethodNode object is abstract, native, or is declared in an interface rather than a class.
isInterface() - Method in class ca.ubc.cs.elide.nodes.ClassNode
Determines if this ClassNode object represents an interface type.

M

makeDefaultAccess() - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the access on this node to the default (package) access.
makePrivate() - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the access on this node to private access.
makeProtected() - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the access on this node to protected access.
makePublic() - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the access on this node to public access.
MethodNode - class ca.ubc.cs.elide.nodes.MethodNode.
A MethodNode provides information about a single method on a class or interface.
MethodNode() - Constructor for class ca.ubc.cs.elide.nodes.MethodNode
 
MethodNode(String) - Constructor for class ca.ubc.cs.elide.nodes.MethodNode
 
ModifierBearingNode - class 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.
ModifierBearingNode() - Constructor for class ca.ubc.cs.elide.nodes.ModifierBearingNode
 
ModifierBearingNode(String) - Constructor for class ca.ubc.cs.elide.nodes.ModifierBearingNode
 

N

NodeFactory - class ca.ubc.cs.elide.nodes.NodeFactory.
Use NodeFactory to easily create instances of ClassNode, FieldNode, MethodNode, and TextNode.
NodeFactory() - Constructor for class ca.ubc.cs.elide.nodes.NodeFactory
 

P

PackageNode - class ca.ubc.cs.elide.nodes.PackageNode.
A PackageNode provides information on and access to a single Java package.
PackageNode() - Constructor for class ca.ubc.cs.elide.nodes.PackageNode
 
PackageNode(String) - Constructor for class ca.ubc.cs.elide.nodes.PackageNode
 
ParameterNode - class ca.ubc.cs.elide.nodes.ParameterNode.
A ParameterNode provides information about a single formal parameter of a method.
ParameterNode() - Constructor for class ca.ubc.cs.elide.nodes.ParameterNode
 
ParameterNode(String, String) - Constructor for class ca.ubc.cs.elide.nodes.ParameterNode
 
ParseNode - class ca.ubc.cs.elide.nodes.ParseNode.
 
ParseNode() - Constructor for class ca.ubc.cs.elide.nodes.ParseNode
 
ParseNode(String) - Constructor for class ca.ubc.cs.elide.nodes.ParseNode
 
put(Object, Object) - Method in class ca.ubc.cs.elide.nodes.ParseNode
 

R

registerType(String, String) - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
remove(ParseNode) - Method in class ca.ubc.cs.elide.nodes.ChildBearingNode
 

S

setAbstract(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the static property of this node; true to add static, false to remove it.
setComment(String) - Method in class ca.ubc.cs.elide.nodes.ParseNode
Sets the comment associated with this item
setFinal(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the static property of this node; true to add static, false to remove it.
setInitializer(String) - Method in class ca.ubc.cs.elide.nodes.FieldNode
Sets the initializer of the field represented by this FieldNode object to the specified String.
setInterface(boolean) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Specifies that this ClassNode object represents an interface type.
setName(String) - Method in class ca.ubc.cs.elide.nodes.ParseNode
 
setNative(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the native property of this node; true to add native, false to remove it.
setReturnType(String) - Method in class ca.ubc.cs.elide.nodes.MethodNode
Sets the name of the formal return type of the method represented by this MethodNode object.
setStatic(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the static property of this node; true to add static, false to remove it.
setSuperclass(String) - Method in class ca.ubc.cs.elide.nodes.ClassNode
Sets the superclass of the entity (class, interface) represented by this ClassNode to the class specified by the given String.
setSynchronized(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the synchronized property of this node; true to add synchronized, false to remove it.
setText(String) - Method in class ca.ubc.cs.elide.nodes.TextNode
Sets the source code contained by this TextNode.
setTransient(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the static property of this node; true to add static, false to remove it.
setType(String) - Method in class ca.ubc.cs.elide.nodes.FieldNode
Sets the type of the field represented by this FieldNode object.
setType(String) - Method in class ca.ubc.cs.elide.nodes.ParameterNode
Sets the name of the type of this parameter.
setVolatile(boolean) - Method in class ca.ubc.cs.elide.nodes.ModifierBearingNode
Sets the static property of this node; true to add static, false to remove it.
StartNode - class ca.ubc.cs.elide.nodes.StartNode.
A StartNode represents the root of a parse tree - this tree is made up of representations of all of the packages, classes, methods, and so on, being processed by ELIDE.
StartNode() - Constructor for class ca.ubc.cs.elide.nodes.StartNode
 
StaticBlockNode - class ca.ubc.cs.elide.nodes.StaticBlockNode.
A StaticBlockNode represents a static initialization block within a class body.
StaticBlockNode() - Constructor for class ca.ubc.cs.elide.nodes.StaticBlockNode
 

T

TextNode - class ca.ubc.cs.elide.nodes.TextNode.
A TextNode represents a snippet of Java code inside a block or method.
TextNode() - Constructor for class ca.ubc.cs.elide.nodes.TextNode
 
TextNode(String) - Constructor for class ca.ubc.cs.elide.nodes.TextNode
 
toString() - Method in class ca.ubc.cs.elide.nodes.ParseNode
Returns a representation of this object as Java source code.
toString() - Method in class ca.ubc.cs.elide.nodes.TransformNode
 
transform() - Method in class ca.ubc.cs.elide.nodes.StartNode
Returns a new tree which is the result of applying all the transformations in this StartNode; for internal use.
transformCollector - Variable in class ca.ubc.cs.elide.nodes.StartNode
maintains all active transforms; for internal use
transformName - Variable in class ca.ubc.cs.elide.nodes.TransformNode
 
TransformNode - class ca.ubc.cs.elide.nodes.TransformNode.
A TransformNode represents a single invocation of a transformation within source code.
TransformNode(String) - Constructor for class ca.ubc.cs.elide.nodes.TransformNode
 
TransformNode(String, List) - Constructor for class ca.ubc.cs.elide.nodes.TransformNode
 
TypeNode - class ca.ubc.cs.elide.nodes.TypeNode.
A TypeNode represents a Java class or interface; unlike ClassNode, it provides no information about the type, but simply serves to identify it by name.
TypeNode() - Constructor for class ca.ubc.cs.elide.nodes.TypeNode
 
TypeNode(String) - Constructor for class ca.ubc.cs.elide.nodes.TypeNode
 

W

wrap(TextNode, String) - Method in class ca.ubc.cs.elide.nodes.CodeBearingNode
Wraps the code elements of this CodeBearingNode object with code supplied by node.

A B C E F G I M N P R S T W