Exemplo n.º 1
0
 @Override
 public void setFirstChild(AST ast) {
   childCount = NOT_INITIALIZED;
   super.setFirstChild(ast);
   if (ast != null) {
     ((DetailAST) ast).setParent(this);
   }
 }
Exemplo n.º 2
0
 @Override
 public void addChild(AST ast) {
   super.addChild(ast);
   if (ast != null) {
     ((DetailAST) ast).setParent(this);
     getFirstChild().setParent(this);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 4
0
 @Override
 public void initialize(Token tok) {
   super.initialize(tok);
   lineNo = tok.getLine();
   columnNo = tok.getColumn() - 1; // expect columns to start @ 0
 }