KickJava   Java API By Example, From Geeks To Geeks.

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


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. ASTArgParameter.java */
6
7 package com.tc.aspectwerkz.expression.ast;
8
9 import com.tc.aspectwerkz.expression.regexp.Pattern;
10 import com.tc.aspectwerkz.expression.regexp.TypePattern;
11 import com.tc.aspectwerkz.expression.SubtypePatternType;
12
13 public class ASTArgParameter extends SimpleNode {
14   private TypePattern m_typePattern;
15
16   public ASTArgParameter(int id) {
17     super(id);
18   }
19
20   public ASTArgParameter(ExpressionParser p, int id) {
21     super(p, id);
22   }
23
24   /**
25    * Accept the visitor. *
26    */

27   public Object JavaDoc jjtAccept(ExpressionParserVisitor visitor, Object JavaDoc data) {
28     return visitor.visit(this, data);
29   }
30
31   public void setTypePattern(String JavaDoc pattern) {
32     if (pattern.endsWith("+")) {
33       pattern = pattern.substring(0, pattern.length() - 1);
34       m_typePattern = Pattern.compileTypePattern(pattern, SubtypePatternType.MATCH_ON_ALL_METHODS);
35     } else {
36       m_typePattern = Pattern.compileTypePattern(pattern, SubtypePatternType.NOT_HIERARCHICAL);
37     }
38   }
39
40   public TypePattern getTypePattern() {
41     return m_typePattern;
42   }
43
44 }
Popular Tags