jasco.tools.aspectparser
Class AspectParser
java.lang.Object
jasco.tools.jascoparser.JascoParser
jasco.tools.aspectparser.AspectParser
- All Implemented Interfaces:
- JascoParserConstants
public class AspectParser
- extends JascoParser
Fields inherited from interface jasco.tools.jascoparser.JascoParserConstants |
_DEFAULT, ABSTRACT, ADDCOMBSTRAT, AFTER, ANDASSIGN, ANNOTATION, AROUND, ASSIGN, BANG, BEFORE, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CALL, CASE, CATCH, CFLOW, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, COMPLEMENT, CONNECTOR, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EQ, EXECUTE, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, HOOKDEFINITION, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, ISAPPLICABLE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, MULTIPLEELEMENTS, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PERALL, PERCFLOW, PERCLASS, PEROBJECT, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REFINABLE, REM, REMASSIGN, RETURN, RETURNING, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICT, STRICTCOMPLEMENT, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, TARGET, THIS, THROW, THROWING, THROWS, TILDE, tokenImage, TRANSIENT, TRAVERSAL, TRUE, TRY, VISITING, VOID, VOLATILE, WHILE, WILDCARDIDENTIFIER, WITHINCODE, XOR, XORASSIGN |
Method Summary |
protected PCutpointConstructorApplicationDesignator |
createDesignatorAll(java.lang.StringBuffer log,
PCutpointConstructor constructor)
|
protected PCutpointConstructorApplicationDesignator |
createDesignatorBool(PCutpointConstructorApplicationDesignator prev,
java.lang.StringBuffer log,
PCutpointConstructor constructor)
|
protected int |
getNumberTag(PCutpointConstructor constructor,
java.lang.String image)
|
PAspect |
getParsedAspect()
|
protected boolean |
isMultipleElements(java.lang.String s)
|
protected PCutpointConstructorApplicationDesignator |
parseAbstractPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
|
protected PCutpointConstructorApplicationDesignator |
parseComplementRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
|
protected PCutpointConstructorApplicationDesignator |
parseConstructorBody(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
|
protected void |
parsePackageDeclaration()
|
protected java.util.Vector |
parseRegularConstructorStatementNext(java.lang.StringBuffer constructorstring)
|
protected PCutpointConstructorApplicationDesignator |
parseRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring,
PCutpointConstructorRegular regularConstructor)
|
protected PRegularConstructorStatement |
parseRegularPointcutStmnt(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
|
protected PCutpointConstructorApplicationDesignator |
parseStrictRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
|
void |
start()
|
protected void |
transformToStateMachine(PRegularConstructorStatement current,
State prev,
java.util.TreeMap statementMap,
java.util.TreeMap stateMap,
PCutpointConstructorRegular regularConstructor)
|
Methods inherited from class jasco.tools.jascoparser.JascoParser |
accumulateMethod, accumulateType, accumulateType, accumulateType, accumulateType, addArrayStuff, assertNotToken, assertOrToken, assertToken, checkASSIGN, checkClass, checkCOLON, checkDOT, checkFileName, checkGT, checkIDENTIFIER, checkLBRACE, checkLBRACKET, checkLPAREN, checkNEW, checkRBRACE, checkRBRACKET, checkRPAREN, checkSEMICOLON, checkSEMICOLONorLBRACE, checkTYPE, checkTYPEorLBRACE, compareNotToken, generatePointer, getClassCode, getCurrentId, getCurrentImage, getFileName, getFullClassName, getLine, getNextToken, getPreviousLine, getTokenManager, hasWildcards, isArray, isAspect, isCheckingClasses, isClass, isEvent, isGenerics, isPrimitive, isRefinable, loadClassOrPrim, loadClassOrPrimOrArray, newError, parseAnnotation, parseField, parseImportDeclaration, parseJavaCode, parseMethod, parseMethodBody, parseModifiers, removeArrayStuff, setIsCheckingClasses |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectParser
public AspectParser(JascoParserTokenManager aAspectParserTokenManager,
java.lang.String aFileName)
getParsedAspect
public PAspect getParsedAspect()
start
public void start()
parsePackageDeclaration
protected void parsePackageDeclaration()
throws JascoParseException
- Throws:
JascoParseException
isMultipleElements
protected boolean isMultipleElements(java.lang.String s)
getNumberTag
protected int getNumberTag(PCutpointConstructor constructor,
java.lang.String image)
throws JascoParseException
- Throws:
JascoParseException
parseStrictRegularPointcut
protected PCutpointConstructorApplicationDesignator parseStrictRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
parseComplementRegularPointcut
protected PCutpointConstructorApplicationDesignator parseComplementRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
parseConstructorBody
protected PCutpointConstructorApplicationDesignator parseConstructorBody(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
parseRegularPointcut
protected PCutpointConstructorApplicationDesignator parseRegularPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring,
PCutpointConstructorRegular regularConstructor)
throws JascoParseException
- Throws:
JascoParseException
transformToStateMachine
protected void transformToStateMachine(PRegularConstructorStatement current,
State prev,
java.util.TreeMap statementMap,
java.util.TreeMap stateMap,
PCutpointConstructorRegular regularConstructor)
throws JascoParseException
- Throws:
JascoParseException
parseRegularPointcutStmnt
protected PRegularConstructorStatement parseRegularPointcutStmnt(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
parseRegularConstructorStatementNext
protected java.util.Vector parseRegularConstructorStatementNext(java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
parseAbstractPointcut
protected PCutpointConstructorApplicationDesignator parseAbstractPointcut(PCutpointConstructor constructor,
java.lang.StringBuffer constructorstring)
throws JascoParseException
- Throws:
JascoParseException
createDesignatorBool
protected PCutpointConstructorApplicationDesignator createDesignatorBool(PCutpointConstructorApplicationDesignator prev,
java.lang.StringBuffer log,
PCutpointConstructor constructor)
throws JascoParseException
- Throws:
JascoParseException
createDesignatorAll
protected PCutpointConstructorApplicationDesignator createDesignatorAll(java.lang.StringBuffer log,
PCutpointConstructor constructor)
throws JascoParseException
- Throws:
JascoParseException