1 package persistence.antlr.collections; 2 3 8 9 import persistence.antlr.Token; 10 11 14 public interface AST { 15 16 public void addChild(AST c); 17 18 public boolean equals(AST t); 19 20 public boolean equalsList(AST t); 21 22 public boolean equalsListPartial(AST t); 23 24 public boolean equalsTree(AST t); 25 26 public boolean equalsTreePartial(AST t); 27 28 public ASTEnumeration findAll(AST tree); 29 30 public ASTEnumeration findAllPartial(AST subtree); 31 32 33 public AST getFirstChild(); 34 35 36 public AST getNextSibling(); 37 38 39 public String getText(); 40 41 42 public int getType(); 43 44 45 public int getLine(); 46 47 48 public int getColumn(); 49 50 51 public int getNumberOfChildren(); 52 53 public void initialize(int t, String txt); 54 55 public void initialize(AST t); 56 57 public void initialize(Token t); 58 59 60 public void setFirstChild(AST c); 61 62 63 public void setNextSibling(AST n); 64 65 66 public void setText(String text); 67 68 69 public void setType(int ttype); 70 71 public String toString(); 72 73 public String toStringList(); 74 75 public String toStringTree(); 76 } 77 | Popular Tags |