1 4 5 6 package com.tc.aspectwerkz.expression.ast; 7 8 public class ASTModifier extends SimpleNode { 9 private int m_modifier; 10 11 private boolean m_not = false; 12 13 public ASTModifier(int id) { 14 super(id); 15 } 16 17 public ASTModifier(ExpressionParser p, int id) { 18 super(p, id); 19 } 20 21 public Object jjtAccept(ExpressionParserVisitor visitor, Object data) { 22 return visitor.visit(this, data); 23 } 24 25 public void toggleNot() { 26 m_not = !m_not; 27 } 28 29 public boolean isNot() { 30 return m_not; 31 } 32 33 public void setModifier(int modifier) { 34 m_modifier = modifier; 35 } 36 37 public int getModifier() { 38 return m_modifier; 39 } 40 } | Popular Tags |