1 package antlr; 2 3 9 10 13 public class CommonASTWithHiddenTokens extends CommonAST { 14 protected CommonHiddenStreamToken hiddenBefore, hiddenAfter; 16 public CommonASTWithHiddenTokens() { 17 super(); 18 } 19 20 public CommonASTWithHiddenTokens(Token tok) { 21 super(tok); 22 } 23 24 public CommonHiddenStreamToken getHiddenAfter() { 25 return hiddenAfter; 26 } 27 28 public CommonHiddenStreamToken getHiddenBefore() { 29 return hiddenBefore; 30 } 31 32 public void initialize(Token tok) { 33 CommonHiddenStreamToken t = (CommonHiddenStreamToken)tok; 34 super.initialize(t); 35 hiddenBefore = t.getHiddenBefore(); 36 hiddenAfter = t.getHiddenAfter(); 37 } 38 } 39 | Popular Tags |