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