01: /* Generated By:JJTree: Do not edit this line. ASTAttribute.java */
02: package org.codehaus.aspectwerkz.expression.ast;
03:
04: public class ASTAttribute extends SimpleNode {
05: private String m_name;
06:
07: private boolean m_not = false;
08:
09: 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: }
|