KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > expression > ast > ASTAttribute


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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