|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.expression.ast.ExpressionParser
Usage:
ExpressionParser parser = new ExpressionParser(System.in); // can be only one ASTRoot root = parser.parse("call(@RequiresNew public * foo.Bar.*(String, ..) AND withincode(* foo.Baz.within(..)"); Expression expression = new Expression(root); ...TODO: the grammar is still fragile
Field Summary | |
static Token |
jj_nt
|
protected static org.codehaus.aspectwerkz.expression.ast.JJTExpressionParserState |
jjtree
|
static boolean |
lookingAhead
|
static Token |
token
|
static ExpressionParserTokenManager |
token_source
|
Fields inherited from interface org.codehaus.aspectwerkz.expression.ast.ExpressionParserTreeConstants |
JJTAND, JJTARGPARAMETER, JJTARGS, JJTATTRIBUTE, JJTCALL, JJTCFLOW, JJTCFLOWBELOW, JJTCLASSPATTERN, JJTCONSTRUCTORPATTERN, JJTEXECUTION, JJTEXPRESSION, JJTFIELDPATTERN, JJTGET, JJTHANDLER, JJTHASFIELD, JJTHASMETHOD, JJTMETHODPATTERN, JJTMODIFIER, jjtNodeName, JJTNOT, JJTOR, JJTPARAMETER, JJTPOINTCUTREFERENCE, JJTROOT, JJTSET, JJTSTATICINITIALIZATION, JJTVOID, JJTWITHIN, JJTWITHINCODE |
Constructor Summary | |
ExpressionParser(ExpressionParserTokenManager tm)
|
|
ExpressionParser(InputStream stream)
|
|
ExpressionParser(Reader stream)
|
Method Summary | |
static void |
AndExpression()
AndExpression. |
static void |
ArgParameter()
ArgParameter. |
static void |
Args()
Args. |
static void |
ArgsParameters()
ArgsParameters. |
static void |
Call()
Call. |
static void |
Cflow()
Cflow. |
static void |
CflowBelow()
CflowBelow. |
static void |
ClassAttribute()
Class annotation. |
static void |
ClassModifier()
Class modifier. |
static void |
ClassPattern()
Class pattern. |
static void |
ConstructorModifier()
Constructor modifier. |
static void |
ConstructorPattern()
Constructor pattern. |
static void |
disable_tracing()
|
static void |
enable_tracing()
|
static void |
Execution()
Execution. |
static void |
Expression()
Expression. |
static void |
FieldAttribute()
Field annotation. |
static void |
FieldModifier()
Field modifier. |
static void |
FieldPattern()
Field pattern. |
static ParseException |
generateParseException()
|
static void |
Get()
Get. |
static Token |
getNextToken()
|
static Token |
getToken(int index)
|
static void |
Handler()
Handler. |
static void |
HasField()
HasField. |
static void |
HasMethod()
HasMethod. |
static void |
MethodAttribute()
Method annotation. |
static void |
MethodModifier()
Method modifier. |
static void |
MethodPattern()
Method pattern. |
static void |
NotExpression()
NotExpression. |
static void |
OrExpression()
OrExpression. |
static void |
Parameter()
Parameter pattern. |
static void |
Parameters()
Parameters. |
ASTRoot |
parse(Reader reader)
|
ASTRoot |
parse(String expression)
|
static void |
Pointcut()
Pointcut. |
static void |
PointcutReference()
Pointcut reference. |
void |
ReInit(ExpressionParserTokenManager tm)
|
static void |
ReInit(InputStream stream)
|
static void |
ReInit(Reader stream)
|
static ASTRoot |
Root()
Entry point. |
static void |
Set()
Set. |
static void |
StaticInitialization()
StaticInitialization. |
static void |
UnaryExpression()
UnaryExpression. |
static void |
Within()
Within. |
static void |
WithinCode()
WithinCode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.codehaus.aspectwerkz.expression.ast.JJTExpressionParserState jjtree
public static ExpressionParserTokenManager token_source
public static Token token
public static Token jj_nt
public static boolean lookingAhead
Constructor Detail |
public ExpressionParser(InputStream stream)
public ExpressionParser(Reader stream)
public ExpressionParser(ExpressionParserTokenManager tm)
Method Detail |
public ASTRoot parse(String expression) throws ParseException
ParseException
public ASTRoot parse(Reader reader) throws ParseException
ParseException
public static final ASTRoot Root() throws ParseException
ParseException
public static final void Expression() throws ParseException
ParseException
public static final void AndExpression() throws ParseException
ParseException
public static final void OrExpression() throws ParseException
ParseException
public static final void UnaryExpression() throws ParseException
ParseException
public static final void NotExpression() throws ParseException
ParseException
public static final void Pointcut() throws ParseException
ParseException
public static final void PointcutReference() throws ParseException
ParseException
public static final void Execution() throws ParseException
ParseException
public static final void Call() throws ParseException
ParseException
public static final void Set() throws ParseException
ParseException
public static final void Get() throws ParseException
ParseException
public static final void Handler() throws ParseException
ParseException
public static final void Within() throws ParseException
ParseException
public static final void WithinCode() throws ParseException
ParseException
public static final void StaticInitialization() throws ParseException
ParseException
public static final void Cflow() throws ParseException
ParseException
public static final void CflowBelow() throws ParseException
ParseException
public static final void Args() throws ParseException
ParseException
public static final void HasMethod() throws ParseException
ParseException
public static final void HasField() throws ParseException
ParseException
public static final void ClassPattern() throws ParseException
ParseException
public static final void MethodPattern() throws ParseException
ParseException
public static final void ConstructorPattern() throws ParseException
ParseException
public static final void FieldPattern() throws ParseException
ParseException
public static final void Parameters() throws ParseException
ParseException
public static final void Parameter() throws ParseException
ParseException
public static final void ArgsParameters() throws ParseException
ParseException
public static final void ArgParameter() throws ParseException
ParseException
public static final void ClassAttribute() throws ParseException
ParseException
public static final void MethodAttribute() throws ParseException
ParseException
public static final void FieldAttribute() throws ParseException
ParseException
public static final void ClassModifier() throws ParseException
ParseException
public static final void MethodModifier() throws ParseException
ParseException
public static final void ConstructorModifier() throws ParseException
ParseException
public static final void FieldModifier() throws ParseException
ParseException
public static void ReInit(InputStream stream)
public static void ReInit(Reader stream)
public void ReInit(ExpressionParserTokenManager tm)
public static final Token getNextToken()
public static final Token getToken(int index)
public static ParseException generateParseException()
public static final void enable_tracing()
public static final void disable_tracing()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |