| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.javassist.compiler.ast.ASTree
classUtils.javassist.compiler.ast.ASTList
public class ASTList
A linked list. The right subtree must be an ASTList object or null.
| Constructor Summary | |
|---|---|
| ASTList(ASTree _head) | |
| ASTList(ASTree _head,
        ASTList _tail) | |
| Method Summary | |
|---|---|
|  void | accept(Visitor v)Is a method for the visitor pattern. | 
| static ASTList | append(ASTList a,
       ASTree b)Appends an object to a list. | 
| static ASTList | concat(ASTList a,
       ASTList b)Concatenates two lists. | 
|  ASTree | getLeft() | 
|  ASTree | getRight() | 
|  ASTree | head()Returns the car part of the list. | 
|  int | length()Returns the number of the elements in this list. | 
| static int | length(ASTList list) | 
| static ASTList | make(ASTree e1,
     ASTree e2,
     ASTree e3) | 
|  void | setHead(ASTree _head) | 
|  void | setLeft(ASTree _left) | 
|  void | setRight(ASTree _right) | 
|  void | setTail(ASTList _tail) | 
|  ASTList | sublist(int nth)Returns a sub list of the list. | 
|  boolean | subst(ASTree newObj,
      ASTree oldObj)Substitutes newObjforoldObjin the
 list. | 
|  ASTList | tail()Returns the cdr part of the list. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ASTList(ASTree _head,
               ASTList _tail)
public ASTList(ASTree _head)
| Method Detail | 
|---|
public static ASTList make(ASTree e1,
                           ASTree e2,
                           ASTree e3)
public ASTree getLeft()
getLeft in class ASTreepublic ASTree getRight()
getRight in class ASTreepublic void setLeft(ASTree _left)
setLeft in class ASTreepublic void setRight(ASTree _right)
setRight in class ASTreepublic ASTree head()
public void setHead(ASTree _head)
public ASTList tail()
public void setTail(ASTList _tail)
public void accept(Visitor v)
            throws CompileError
ASTreeatXXX() on the given visitor, where
 XXX is the class name of the node object.
accept in class ASTreeCompileErrorpublic java.lang.String toString()
toString in class ASTreepublic int length()
public static int length(ASTList list)
public ASTList sublist(int nth)
nth - zero or more than zero.
public boolean subst(ASTree newObj,
                     ASTree oldObj)
newObj for oldObj in the
 list.
public static ASTList append(ASTList a,
                             ASTree b)
public static ASTList concat(ASTList a,
                             ASTList b)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||