예제 #1
0
 @Override
 public void setFirstChild(AST ast) {
   childCount = NOT_INITIALIZED;
   super.setFirstChild(ast);
   if (ast != null) {
     ((DetailAST) ast).setParent(this);
   }
 }
예제 #2
0
 @Override
 public void addChild(AST ast) {
   super.addChild(ast);
   if (ast != null) {
     ((DetailAST) ast).setParent(this);
     getFirstChild().setParent(this);
   }
 }
예제 #3
0
 @Override
 public void setNextSibling(AST ast) {
   super.setNextSibling(ast);
   if (ast != null && parent != null) {
     ((DetailAST) ast).setParent(parent);
   }
   if (ast != null) {
     ((DetailAST) ast).setPreviousSibling(this);
   }
 }
예제 #4
0
 @Override
 public void initialize(Token tok) {
   super.initialize(tok);
   lineNo = tok.getLine();
   columnNo = tok.getColumn() - 1; // expect columns to start @ 0
 }