001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
003: */
004: package com.tc.aspectwerkz.expression.ast;
005:
006: public interface ExpressionParserConstants {
007:
008: int EOF = 0;
009: int COMMA = 3;
010: int DOT = 4;
011: int WILDCARD = 5;
012: int ARRAY = 6;
013: int EAGER_WILDCARD = 7;
014: int AND = 8;
015: int OR = 9;
016: int NOT = 10;
017: int EXECUTION = 11;
018: int CALL = 12;
019: int SET = 13;
020: int GET = 14;
021: int HANDLER = 15;
022: int WITHIN = 16;
023: int WITHIN_CODE = 17;
024: int STATIC_INITIALIZATION = 18;
025: int CFLOW = 19;
026: int CFLOW_BELOW = 20;
027: int ARGS = 21;
028: int TARGET = 22;
029: int THIS = 23;
030: int IF = 24;
031: int HAS_METHOD = 25;
032: int HAS_FIELD = 26;
033: int POINTCUT_REFERENCE_WITH_ARGS = 27;
034: int POINTCUT_REFERENCE = 28;
035: int CLASS_PRIVATE = 29;
036: int CLASS_PROTECTED = 30;
037: int CLASS_PUBLIC = 31;
038: int CLASS_STATIC = 32;
039: int CLASS_ABSTRACT = 33;
040: int CLASS_FINAL = 34;
041: int CLASS_NOT = 35;
042: int CLASS_ATTRIBUTE = 36;
043: int CLASS_PATTERN = 37;
044: int CLASS_EXACT_IDENTIFIER = 38;
045: int CLASS_IDENTIFIER = 39;
046: int CLASS_JAVA_NAME_LETTER = 40;
047: int CLASS_POINTCUT_END = 41;
048: int METHOD_PUBLIC = 42;
049: int METHOD_PROTECTED = 43;
050: int METHOD_PRIVATE = 44;
051: int METHOD_STATIC = 45;
052: int METHOD_ABSTRACT = 46;
053: int METHOD_FINAL = 47;
054: int METHOD_NATIVE = 48;
055: int METHOD_SYNCHRONIZED = 49;
056: int TYPE_STATICINITIALIZATION = 50;
057: int METHOD_NOT = 51;
058: int METHOD_ANNOTATION = 52;
059: int METHOD_IDENTIFIER = 53;
060: int METHOD_CLASS_PATTERN = 54;
061: int METHOD_ARRAY_CLASS_PATTERN = 55;
062: int METHOD_ATTRIBUTE_EXACT_IDENTIFIER = 56;
063: int METHOD_PARAMETER_START = 57;
064: int METHOD_PARAMETER_END = 58;
065: int METHOD_JAVA_NAME_LETTER = 59;
066: int FIELD_PRIVATE = 60;
067: int FIELD_PROTECTED = 61;
068: int FIELD_PUBLIC = 62;
069: int FIELD_STATIC = 63;
070: int FIELD_ABSTRACT = 64;
071: int FIELD_FINAL = 65;
072: int FIELD_TRANSIENT = 66;
073: int FIELD_NOT = 67;
074: int FIELD_ANNOTATION = 68;
075: int FIELD_IDENTIFIER = 69;
076: int FIELD_CLASS_PATTERN = 70;
077: int FIELD_ARRAY_CLASS_PATTERN = 71;
078: int FIELD_ATTRIBUTE_EXACT_IDENTIFIER = 72;
079: int FIELD_JAVA_NAME_LETTER = 73;
080: int FIELD_POINTCUT_END = 74;
081: int PARAMETER_IDENTIFIER = 75;
082: int PARAMETER_CLASS_PATTERN = 76;
083: int PARAMETER_ARRAY_CLASS_PATTERN = 77;
084: int PARAMETER_ANNOTATION = 78;
085: int PARAMETER_JAVA_NAME_LETTER = 79;
086: int PARAMETER_NOT = 80;
087: int ARG_IDENTIFIER = 81;
088: int ARG_PATTERN = 82;
089: int ARG_ARRAY_PATTERN = 83;
090: int ARG_JAVA_NAME_LETTER = 84;
091: int ARGS_END = 85;
092:
093: int IN_ARGS = 0;
094: int PARAMETERS = 1;
095: int FIELD = 2;
096: int METHOD = 3;
097: int CLASS = 4;
098: int DEFAULT = 5;
099:
100: String[] tokenImage = { "<EOF>", "\" \"", "\"\\t\"", "\",\"",
101: "\".\"", "\"*\"", "\"[]\"", "<EAGER_WILDCARD>", "<AND>",
102: "<OR>", "\"!\"", "\"execution(\"", "\"call(\"", "\"set(\"",
103: "\"getDefault(\"", "\"handler(\"", "\"within(\"",
104: "\"withincode(\"", "\"staticinitialization(\"",
105: "\"cflow(\"", "\"cflowbelow(\"", "\"args(\"",
106: "\"target(\"", "\"this(\"", "\"if()\"", "\"hasmethod(\"",
107: "\"hasfield(\"", "<POINTCUT_REFERENCE_WITH_ARGS>",
108: "<POINTCUT_REFERENCE>", "\"private\"", "\"protected\"",
109: "\"public\"", "\"static\"", "\"abstract\"", "\"final\"",
110: "\"!\"", "<CLASS_ATTRIBUTE>", "<CLASS_PATTERN>",
111: "<CLASS_EXACT_IDENTIFIER>", "<CLASS_IDENTIFIER>",
112: "<CLASS_JAVA_NAME_LETTER>", "\")\"", "\"public\"",
113: "\"protected\"", "\"private\"", "\"static\"",
114: "\"abstract\"", "\"final\"", "\"native\"",
115: "\"synchronized\"", "\"staticinitialization\"", "\"!\"",
116: "<METHOD_ANNOTATION>", "<METHOD_IDENTIFIER>",
117: "<METHOD_CLASS_PATTERN>", "<METHOD_ARRAY_CLASS_PATTERN>",
118: "<METHOD_ATTRIBUTE_EXACT_IDENTIFIER>", "\"(\"", "\")\"",
119: "<METHOD_JAVA_NAME_LETTER>", "\"private\"",
120: "\"protected\"", "\"public\"", "\"static\"",
121: "\"abstract\"", "\"final\"", "\"transient\"", "\"!\"",
122: "<FIELD_ANNOTATION>", "<FIELD_IDENTIFIER>",
123: "<FIELD_CLASS_PATTERN>", "<FIELD_ARRAY_CLASS_PATTERN>",
124: "<FIELD_ATTRIBUTE_EXACT_IDENTIFIER>",
125: "<FIELD_JAVA_NAME_LETTER>", "\")\"",
126: "<PARAMETER_IDENTIFIER>", "<PARAMETER_CLASS_PATTERN>",
127: "<PARAMETER_ARRAY_CLASS_PATTERN>",
128: "<PARAMETER_ANNOTATION>", "<PARAMETER_JAVA_NAME_LETTER>",
129: "\"!\"", "<ARG_IDENTIFIER>", "<ARG_PATTERN>",
130: "<ARG_ARRAY_PATTERN>", "<ARG_JAVA_NAME_LETTER>", "\")\"",
131: "\"(\"", "\")\"", };
132:
133: }
|