jasco.tools.aspectparser
Class AspectParser

java.lang.Object
  extended by jasco.tools.jascoparser.JavaParser
      extended by jasco.tools.jascoparser.JascoParser
          extended by jasco.tools.aspectparser.AspectParser
All Implemented Interfaces:
JascoParserConstants

public class AspectParser
extends JascoParser


Field Summary
 
Fields inherited from class jasco.tools.jascoparser.JascoParser
REFINABLEMOD
 
Fields inherited from class jasco.tools.jascoparser.JavaParser
TYPE_ASPECT, TYPE_CLASS, TYPE_METHOD
 
Fields inherited from interface jasco.tools.jascoparser.JascoParserConstants
_DEFAULT, ABSTRACT, ADDCOMBSTRAT, AFTER, ANDASSIGN, ANNOTATION, AROUND, ASSIGN, ATINTERFACE, 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, ENUM, EOF, EQ, EXECUTE, EXECUTIONHOST, 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, JOINPOINTHOST, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, MULTIPLEELEMENTS, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PER, PERALL, PERCFLOW, PERCLASS, PERMETHOD, PEROBJECT, PERTHREAD, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REFINABLE, REFINING, 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, VARARGS, VISITING, VOID, VOLATILE, WHILE, WILDCARDIDENTIFIER, WITHINCODE, XOR, XORASSIGN
 
Constructor Summary
AspectParser(JascoParserTokenManager aAspectParserTokenManager, java.lang.String aFileName)
           
 
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 isExistingClassName(java.lang.String name)
           
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  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
checkAnyType, checkASSIGN, checkClass, checkCOLON, checkDOT, checkLBRACKET, checkLPAREN, checkNEW, checkRBRACE, checkRPAREN, checkSEMICOLONorLBRACE, checkTYPE, checkTYPEorLBRACE, getClassCode, hasWildcards, isAbstractModifier, isEvent, isHook, isRefinable, loadClassOrPrim, loadClassOrPrimOrArray, parseModifiers, tokenANNOTATION, tokenASSIGN, tokenATINTERFACE, tokenCLASS, tokenCOMMA, tokenDOT, tokenENUM, tokenEOF, tokenEXTENDS, tokenFINAL, tokenGT, tokenIDENTIFIER, tokenIMPLEMENTS, tokenIMPORT, tokenINTERFACE, tokenLBRACE, tokenLBRACKET, tokenLPAREN, tokenLT, tokenPACKAGE, tokenRBRACE, tokenRBRACKET, tokenRPAREN, tokenSEMICOLON, tokenSTATIC, tokenTHROWS, tokenVARARGS
 
Methods inherited from class jasco.tools.jascoparser.JavaParser
accumulateMethod, accumulateType, accumulateType, accumulateType, accumulateType, addArrayStuff, addSyntheticImports, addSyntheticImports, assertNotToken, assertOrToken, assertToken, checkFileName, checkGT, checkIDENTIFIER, checkLBRACE, checkRBRACKET, checkSEMICOLON, compareNotToken, generatePointer, getCurrentId, getCurrentImage, getFileName, getFullClassName, getLine, getNextToken, getPreviousLine, getTokenManager, isArray, isCheckingClasses, isClass, isGenerics, isPrimitive, newError, parseAnnotation, parseClass, parseDeclarationPreamble, parseField, parseFieldBody, parseGenerics, parseImportDeclaration, parseJavaCode, parseJavaCode, parseMethod, parseMethodBody, parsePackageDeclaration, parseSuperDeclarations, removeArrayStuff, setIsCheckingClasses, setPublic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectParser

public AspectParser(JascoParserTokenManager aAspectParserTokenManager,
                    java.lang.String aFileName)
Method Detail

getParsedAspect

public PAspect getParsedAspect()

start

public void start()

isExistingClassName

protected boolean isExistingClassName(java.lang.String name)
Overrides:
isExistingClassName in class JascoParser

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