View Javadoc

1   /* Generated By:JJTree: Do not edit this line. ASTAttribute.java */
2   package org.codehaus.aspectwerkz.expression.ast;
3   
4   public class ASTAttribute extends SimpleNode {
5       private String m_name;
6   
7       private boolean m_not = false;
8   
9       public ASTAttribute(int id) {
10          super(id);
11      }
12  
13      public ASTAttribute(ExpressionParser p, int id) {
14          super(p, id);
15      }
16  
17      public Object jjtAccept(ExpressionParserVisitor visitor, Object data) {
18          return visitor.visit(this, data);
19      }
20  
21      public void setName(String name) {
22          // remove the first '@'
23          m_name = name.substring(1, name.length());
24      }
25  
26      public String getName() {
27          return m_name;
28      }
29  
30      public void toggleNot() {
31          m_not = !m_not;
32      }
33  
34      public boolean isNot() {
35          return m_not;
36      }
37  }