plp.orientadaAspectos1.parser
Class OA1Parser

java.lang.Object
  extended by plp.orientadaAspectos1.parser.OA1Parser
All Implemented Interfaces:
OA1ParserConstants

public class OA1Parser
extends java.lang.Object
implements OA1ParserConstants

Parser para a Linguagem de Programação Orientada a Objetos


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 OA1ParserTokenManager token_source
           
 
Fields inherited from interface plp.orientadaAspectos1.parser.OA1ParserConstants
ADVICE_AFTER, ADVICE_AROUND, ADVICE_BEFORE, AND, ASPECTO, ASSIGN, ATTRIB, BANG, BIT_AND, BIT_OR, BOOLEAN, CFLOW, CFLOWBELOW, CLASSE, COLON, COMAND_SKIP, COMMA, CONCAT, DECIMAL_LITERAL, DEFAULT, DIGIT, DO, DOT, DOT_DOT, ELSE, EOF, EQ, FALSE, FORMAL_COMMENT, GE, GET, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, INT, INTEGER_LITERAL, LBRACE, LBRACKET, LE, LENGTH, LETTER, LPAREN, LT, MINUS, MULTI_LINE_COMMENT, NE, NEW, NOT, NULL, OCTAL_LITERAL, OR, PLUS, POINTCUT, PROC, PROCEED, RBRACE, RBRACKET, READ, REM, RPAREN, SC_AND, SC_OR, SEMICOLON, SET, SINGLE_LINE_COMMENT, SLASH, STAR, STRING, STRING_LITERAL, THEN, THIS, TILDE, tokenImage, TRUE, VAR, WHILE, WITHIN, WITHINCODE, WRITE, XOR
 
Constructor Summary
OA1Parser(java.io.InputStream stream)
           
OA1Parser(OA1ParserTokenManager tm)
           
OA1Parser(java.io.Reader stream)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
static void main(java.lang.String[] args)
          Método principal que executa um dado programa que pode ser fornecido através da entrada padrão ou em um arquivo cujo nome entra como parâmetro para esse método.
 AcessoAtributo PAcessoAtributo(This thisObject)
          AcessoAtributo ::= this.Id | (this).id | "("LeftExpression")".Id | Id.Id
 AcessoAtributoId PAcessoAtributoId(This thisObject)
          ...
 AcessoAtributoId PAcessoAtributoIdChamador(This thisObject)
          ...
 AcessoAtributoThis PAcessoAtributoThis(This thisObject)
          ... this.Id | (this).id
 Atribuicao PAtribuicao(This thisObject)
          Atribuicao ::= LeftExpression ":=" Expressao
 PointcutExpressao PCflowbelowPointcutDesignator()
          cflowbelow "(" Id "."
 PointcutExpressao PCflowPointcutDesignator()
          cflow "(" Id.Id ")"
 ChamadaMetodo PChamadaMetodo(This thisObject)
          ChamadaMetodo ::= ExpressaoChamadora "."
 Comando PComando(This thisObject)
          Comando::= ComandoSimples | ComandoSequencial
 ComandoAround PComandoAround()
          Comando | Comando "proceed" Comando
 ComandoAround PComandoAroundProceed()
          ComandoAroundProceed
 ComandoAround PComandoAroundSimples()
          ComandoAroundSimples
 Sequencial PComandoSequencial(This thisObject)
          ComandoSequencial ::= ComandoSimples ";" Comando
 Comando PComandoSimples(This thisObject)
          ComandoSimples ::= Skip | ComDeclaracao | While | IfThenElse | IO | ChamadaMetodo | New | Atribuicao | "("Comando")
 ComDeclaracao PComDeclaracao(This thisObject)
          ComDeclaracao :: = "{" DecVariavel ";" Comando "}"
 CompostaDecVariavel PCompostaDecVariavel(This thisObject)
          ...
 DecAdvice PDecAdvice()
          DecAdviceSimples | DecAdvice "," DecAdvice
 DecAdvice PDecAdviceAfter()
          "after" ":" Id "{" Comando "}"
 DecAdvice PDecAdviceAround()
          "around" ":" Id "{" ComandoAround "}"
 DecAdvice PDecAdviceBefore()
          "before" ":" Id "{" Comando "}"
 DecAdvice PDecAdviceComposto()
          DecAdvice "," DecAdvice
 DecAdvice PDecAdviceSimples()
          "before" ":" Id "{" Comando "}" | "after" ":" Id "{" Comando "}" | "around" ":" "{" ComandoAround "}" |
 DecAspecto PDecAspecto(This thisObject)
          ...
 DecAspecto PDecAspectoComIntroducao(This thisObject)
           
 DecAspecto PDecAspectoSemIntroducao()
           
 DecClasse PDecClasse()
          ...
 DecElemento PDecElemento()
          DecClasse ::= "classe" Id "{" DecVariavel ";" DecProcedimento "}" | DecClasse "," DecClasse
 DecElementoComposto PDecElementoComposto()
          ...
 DecElemento PDecElementoSimples()
          ...
 DecIntroducao PDecIntroducao(This thisObject)
           
 DecIntroducao PDecIntroducaoComposta(This thisObject)
           
 DecIntroducaoProcedimento PDecIntroducaoProcedimento(This thisObject)
           
 DecIntroducao PDecIntroducaoSimples(This thisObject)
           
 DecIntroducao PDecIntroducaoVariavel(This thisObject)
           
 DecIntroducaoVariavel PDecIntroducaoVariavelObjeto()
           
 DecParametro PDecParametroAtomico()
          ...Tipo Id
 ListaDeclaracaoParametro PDecParametroComposto()
          ...
 DecPointcut PDecPointcut()
          ...
 DecPointcut PDecPointcutComposto()
          DecPointcut "," DecPointut
 DecPointcut PDecPointcutSimples()
          "pointcut" Id ":" PointcutExpressao
 DecProcedimento PDecProcedimento()
          DecProcedimento ::= "proc" Id "("")" "{"Comando"}" | "proc" Id "(" ListaDeclaracaoParametro ")" "{"Comando"}" | DecProcedimento "," DecProcedimento
 DecProcedimentoComposta PDecProcedimentoComposta()
          ...
 DecProcedimento PDecProcedimentoSimples()
          ...
 DecVariavel PDecVariavel(This thisObject)
          DecVariavel ::= Tipo Id "=" Expressao | DecVariavel "," DecVariavel | Tipo Id ":=" "new" Id | "("DecVariavel")"
 DecVariavel PDecVariavelAtomica(This thisObject)
          ...
 DecVariavelObjeto PDecVariavelObjeto()
          ...
 PointcutExpressao PEscritaAtributoPointcutDesignator()
          set "(" Id "."
 Expressao PExpBinaria(This thisObject)
          ExpBinaria ::= ExpUnaria ( "+" ExpUnaria | "-" ExpUnaria | "and" ExpUnaria | "or" ExpUnaria | "==" ExpUnaria | "++" Expressao)*
 Expressao PExpLength(This thisObject)
          ...
 Expressao PExpMenos(This thisObject)
          ... "-" Expressao
 Expressao PExpNot(This thisObject)
          ...
 Expressao PExpPrimaria(This thisObject)
          ExpPrimaria ::= Valor | LeftExpression | this | "("Expressao")"
 Expressao PExpressao(This thisObject)
          Expressao ::= ExpUnaria | ExpBinaria | ExpPrimaria
 Expressao PExpressaoChamadora(This thisObject)
          Uma expressao chamadora eh aquela que chama um método.
 Expressao PExpUnaria(This thisObject)
          ExpUnaria ::= "-" Expressao | "not" Expressao | "length" Expressao | ExpPrimaria
 Id PId()
          ...
 IfThenElse PIfThenElse(This thisObject)
          IfThenElse ::= "if" Expressao "then" "{" Comando "}" | "if" Expressao "then" "{" Comando "}" "else" "{" Comando "}"
 DecIntroducaoVariavel PIntroducaoSimplesDecVariavel(This thisObject)
           
 IO PIO(This thisObject)
          IO ::= "write" "(" Expressao ")" | "read" "(" Id ")"
 LeftExpression PLeftExpression(This thisObject)
          LeftExpression ::= Id | AcessoAtributo
 LeftExpression PLeftExpressionChamadora(This thisObject)
          LeftExpressionChamadora ::= AcessoAtributoChamador | AcessoAtributoThis | id
 PointcutExpressao PLeituraAtributoPointcutDesignator()
          get "(" Id "."
 ListaDeclaracaoParametro PListaDeclaracaoParametro()
          ListaDeclaracaoParametro ::= Tipo Id | Tipo Id "," ListaDeclaracaoParametro
 ListaExpressao PListaExpressao(This thisObject)
          ListaExpressao ::= Expressao | Expressao "," ListaExpressao
 Expressao PListaExpressaoAtomica(This thisObject)
          ...Expressao
 ListaExpressao PListaExpressaoComposta(This thisObject)
          ...
 ListaTipoParametro PListaTipoParametro()
          ListaTipoParametro ::= Id | Id "," ListaTipoParametro
 ListaTipoParametro PListaTipoParametroStar()
          ListaTipoParametro ::= Id
 PointcutExpressao PMethodCallPointcutDesignator()
          Id "."
 New PNew(This thisObject)
          New ::= LeftExpression ":=" "new" Id
 PointcutExpressao PPointcutDesignator()
          PointcutDesignator
 PointcutExpressao PPointcutDesignatorBooleanaNot()
           PointcutDesignator
 PointcutExpressao PPointcutExpressao()
          PointcutDesignator | PointcutExpressaoBooleana
 PointcutExpressao PPointcutExpressaoBooleana()
          PointcutExpressaoBooleana
 PointcutExpressao PPointcutExpressaoBooleanaNot()
           PointcutExpressao
 Id PPointcutPattern()
          ...
 Id PPointcutPatternId()
          
 Id PPointcutPatternIdStar()
          
 Id PPointcutPatternStar()
          
 Id PPointcutPatternStarId()
          
 Programa PPrograma()
          Programa ::= "{" DecElemento ";" Comando "}"
 Read PRead()
          ...
 PointcutExpressao PRefPointcutDesignator()
          Id
 Programa processaEntrada()
          Método chamado com o intuito de processar a entrada fornecida ao parser gerando objeto do tipo Programa.
 SimplesDecVariavel PSimplesDecVariavel(This thisObject)
          ...
 Skip PSkip()
          Skip::=
 This PThis(This thisObject)
          ... this
 Tipo PTipo()
          Tipo ::= TipoClasse | TipoPrimitivo
 Tipo PTipoClasse()
          TipoClasse ::= Id
 Tipo PTipoPrimitivo()
          TipoPrimitivo ::= "string" | "int" | "boolean"
 Token PTiposValidosListaParametros()
          PTiposValidosListaParametros ::= | | |
 Valor PValor()
          Valor ::= ValorInteiro | ValorNull | ValorBooleano | ValorString
 Valor PValorBooleano()
          ...
 Valor PValorInteiro()
          ...
 ValorNull PValorNull()
          ...
 Valor PValorString()
          ...
 While PWhile(This thisObject)
          While ::= "while" Expressao do" "{" Comando "}"
 PointcutExpressao PWithincodePointcutDesignator()
          withincode "(" Id "."
 PointcutExpressao PWithinPointcutDesignator()
          within "(" Id ")"
 Write PWrite(This thisObject)
          ...
 void ReInit(java.io.InputStream stream)
           
 void ReInit(OA1ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public OA1ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

OA1Parser

public OA1Parser(java.io.InputStream stream)

OA1Parser

public OA1Parser(java.io.Reader stream)

OA1Parser

public OA1Parser(OA1ParserTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)
Método principal que executa um dado programa que pode ser fornecido através da entrada padrão ou em um arquivo cujo nome entra como parâmetro para esse método.

Parameters:
args - Argumentos para o método.

processaEntrada

public final Programa processaEntrada()
                               throws ParseException
Método chamado com o intuito de processar a entrada fornecida ao parser gerando objeto do tipo Programa.

Throws:
ParseException

PPrograma

public final Programa PPrograma()
                         throws ParseException
Programa ::= "{" DecElemento ";" Comando "}"

Throws:
ParseException

PComando

public final Comando PComando(This thisObject)
                       throws ParseException
Comando::= ComandoSimples | ComandoSequencial

Throws:
ParseException

PComandoSequencial

public final Sequencial PComandoSequencial(This thisObject)
                                    throws ParseException
ComandoSequencial ::= ComandoSimples ";" Comando

Throws:
ParseException

PComandoSimples

public final Comando PComandoSimples(This thisObject)
                              throws ParseException
ComandoSimples ::= Skip | ComDeclaracao | While | IfThenElse | IO | ChamadaMetodo | New | Atribuicao | "("Comando")

Throws:
ParseException

PSkip

public final Skip PSkip()
                 throws ParseException
Skip::=

Throws:
ParseException

PComDeclaracao

public final ComDeclaracao PComDeclaracao(This thisObject)
                                   throws ParseException
ComDeclaracao :: = "{" DecVariavel ";" Comando "}"

Throws:
ParseException

PWhile

public final While PWhile(This thisObject)
                   throws ParseException
While ::= "while" Expressao do" "{" Comando "}"

Throws:
ParseException

PIfThenElse

public final IfThenElse PIfThenElse(This thisObject)
                             throws ParseException
IfThenElse ::= "if" Expressao "then" "{" Comando "}" | "if" Expressao "then" "{" Comando "}" "else" "{" Comando "}"

Throws:
ParseException

PChamadaMetodo

public final ChamadaMetodo PChamadaMetodo(This thisObject)
                                   throws ParseException
ChamadaMetodo ::= ExpressaoChamadora "." Id "(" ListaExpressao ")" | ExpressaoChamadora "." Id "("")"

Throws:
ParseException

PListaExpressao

public final ListaExpressao PListaExpressao(This thisObject)
                                     throws ParseException
ListaExpressao ::= Expressao | Expressao "," ListaExpressao

Throws:
ParseException

PListaExpressaoComposta

public final ListaExpressao PListaExpressaoComposta(This thisObject)
                                             throws ParseException
... Expressao "," ListaExpressao

Throws:
ParseException

PListaExpressaoAtomica

public final Expressao PListaExpressaoAtomica(This thisObject)
                                       throws ParseException
...Expressao

Throws:
ParseException

PNew

public final New PNew(This thisObject)
               throws ParseException
New ::= LeftExpression ":=" "new" Id

Throws:
ParseException

PAtribuicao

public final Atribuicao PAtribuicao(This thisObject)
                             throws ParseException
Atribuicao ::= LeftExpression ":=" Expressao

Throws:
ParseException

PIO

public final IO PIO(This thisObject)
             throws ParseException
IO ::= "write" "(" Expressao ")" | "read" "(" Id ")"

Throws:
ParseException

PRead

public final Read PRead()
                 throws ParseException
... "read" "(" Id ")"

Throws:
ParseException

PWrite

public final Write PWrite(This thisObject)
                   throws ParseException
... "write" "(" Expressao ")"

Throws:
ParseException

PExpressao

public final Expressao PExpressao(This thisObject)
                           throws ParseException
Expressao ::= ExpUnaria | ExpBinaria | ExpPrimaria

Throws:
ParseException

PExpPrimaria

public final Expressao PExpPrimaria(This thisObject)
                             throws ParseException
ExpPrimaria ::= Valor | LeftExpression | this | "("Expressao")"

Throws:
ParseException

PValor

public final Valor PValor()
                   throws ParseException
Valor ::= ValorInteiro | ValorNull | ValorBooleano | ValorString

Throws:
ParseException

PValorInteiro

public final Valor PValorInteiro()
                          throws ParseException
... ValorInteiro

Throws:
ParseException

PValorNull

public final ValorNull PValorNull()
                           throws ParseException
... ValorNull

Throws:
ParseException

PValorBooleano

public final Valor PValorBooleano()
                           throws ParseException
... ValorBooleano

Throws:
ParseException

PValorString

public final Valor PValorString()
                         throws ParseException
... ValorString

Throws:
ParseException

PExpUnaria

public final Expressao PExpUnaria(This thisObject)
                           throws ParseException
ExpUnaria ::= "-" Expressao | "not" Expressao | "length" Expressao | ExpPrimaria

Throws:
ParseException

PExpMenos

public final Expressao PExpMenos(This thisObject)
                          throws ParseException
... "-" Expressao

Throws:
ParseException

PExpNot

public final Expressao PExpNot(This thisObject)
                        throws ParseException
... "not" Expressao

Throws:
ParseException

PExpLength

public final Expressao PExpLength(This thisObject)
                           throws ParseException
... "length" Expressao

Throws:
ParseException

PExpBinaria

public final Expressao PExpBinaria(This thisObject)
                            throws ParseException
ExpBinaria ::= ExpUnaria ( "+" ExpUnaria | "-" ExpUnaria | "and" ExpUnaria | "or" ExpUnaria | "==" ExpUnaria | "++" Expressao)*

Throws:
ParseException

PThis

public final This PThis(This thisObject)
                 throws ParseException
... this

Throws:
ParseException

PLeftExpression

public final LeftExpression PLeftExpression(This thisObject)
                                     throws ParseException
LeftExpression ::= Id | AcessoAtributo

Throws:
ParseException

PId

public final Id PId()
             throws ParseException
... Id

Throws:
ParseException

PAcessoAtributo

public final AcessoAtributo PAcessoAtributo(This thisObject)
                                     throws ParseException
AcessoAtributo ::= this.Id | (this).id | "("LeftExpression")".Id | Id.Id

Throws:
ParseException

PAcessoAtributoThis

public final AcessoAtributoThis PAcessoAtributoThis(This thisObject)
                                             throws ParseException
... this.Id | (this).id

Throws:
ParseException

PAcessoAtributoId

public final AcessoAtributoId PAcessoAtributoId(This thisObject)
                                         throws ParseException
... "("LeftExpression")".Id | Id.Id

Throws:
ParseException

PExpressaoChamadora

public final Expressao PExpressaoChamadora(This thisObject)
                                    throws ParseException
Uma expressao chamadora eh aquela que chama um método. Ela sabe separar o acesso de atributo, que é o que ela retorna, da chamada do método em si (). PExpressaoChamadora:: this | id | LeftExpressionChamadora

Throws:
ParseException

PLeftExpressionChamadora

public final LeftExpression PLeftExpressionChamadora(This thisObject)
                                              throws ParseException
LeftExpressionChamadora ::= AcessoAtributoChamador | AcessoAtributoThis | id

Throws:
ParseException

PAcessoAtributoIdChamador

public final AcessoAtributoId PAcessoAtributoIdChamador(This thisObject)
                                                 throws ParseException
... "("LeftExpressionChamadora")".Id | Id.Id

Throws:
ParseException

PDecElemento

public final DecElemento PDecElemento()
                               throws ParseException
DecClasse ::= "classe" Id "{" DecVariavel ";" DecProcedimento "}" | DecClasse "," DecClasse

Throws:
ParseException

PDecElementoSimples

public final DecElemento PDecElementoSimples()
                                      throws ParseException
... DecAspecto | DecClasse

Throws:
ParseException

PDecElementoComposto

public final DecElementoComposto PDecElementoComposto()
                                               throws ParseException
... DecElemento "," DecElemento

Throws:
ParseException

PDecClasse

public final DecClasse PDecClasse()
                           throws ParseException
... "classe" Id "{" DecVariavel ";" DecProcedimento "}"

Throws:
ParseException

PDecAspecto

public final DecAspecto PDecAspecto(This thisObject)
                             throws ParseException
... "aspect" Id "{" DecPointcut ";" DecAdvice "}"

Throws:
ParseException

PDecAspectoComIntroducao

public final DecAspecto PDecAspectoComIntroducao(This thisObject)
                                          throws ParseException
Throws:
ParseException

PDecAspectoSemIntroducao

public final DecAspecto PDecAspectoSemIntroducao()
                                          throws ParseException
Throws:
ParseException

PDecIntroducao

public final DecIntroducao PDecIntroducao(This thisObject)
                                   throws ParseException
Throws:
ParseException

PDecIntroducaoComposta

public final DecIntroducao PDecIntroducaoComposta(This thisObject)
                                           throws ParseException
Throws:
ParseException

PDecIntroducaoSimples

public final DecIntroducao PDecIntroducaoSimples(This thisObject)
                                          throws ParseException
Throws:
ParseException

PDecIntroducaoProcedimento

public final DecIntroducaoProcedimento PDecIntroducaoProcedimento(This thisObject)
                                                           throws ParseException
Throws:
ParseException

PDecIntroducaoVariavel

public final DecIntroducao PDecIntroducaoVariavel(This thisObject)
                                           throws ParseException
Throws:
ParseException

PDecIntroducaoVariavelObjeto

public final DecIntroducaoVariavel PDecIntroducaoVariavelObjeto()
                                                         throws ParseException
Throws:
ParseException

PIntroducaoSimplesDecVariavel

public final DecIntroducaoVariavel PIntroducaoSimplesDecVariavel(This thisObject)
                                                          throws ParseException
Throws:
ParseException

PDecPointcut

public final DecPointcut PDecPointcut()
                               throws ParseException
... "pointcut" Id ":" PointcutExpressao | DecPointcut "," DecPointut

Throws:
ParseException

PDecPointcutSimples

public final DecPointcut PDecPointcutSimples()
                                      throws ParseException
"pointcut" Id ":" PointcutExpressao

Throws:
ParseException

PDecPointcutComposto

public final DecPointcut PDecPointcutComposto()
                                       throws ParseException
DecPointcut "," DecPointut

Throws:
ParseException

PPointcutExpressao

public final PointcutExpressao PPointcutExpressao()
                                           throws ParseException
PointcutDesignator | PointcutExpressaoBooleana

Throws:
ParseException

PPointcutDesignator

public final PointcutExpressao PPointcutDesignator()
                                            throws ParseException
PointcutDesignator

Throws:
ParseException

PRefPointcutDesignator

public final PointcutExpressao PRefPointcutDesignator()
                                               throws ParseException
Id

Throws:
ParseException

PMethodCallPointcutDesignator

public final PointcutExpressao PMethodCallPointcutDesignator()
                                                      throws ParseException
Id "." Id "(" ")" | Id "." Id "(" ListaDeclaracaoParametro ")"

Throws:
ParseException

PPointcutPattern

public final Id PPointcutPattern()
                          throws ParseException
... Id

Throws:
ParseException

PPointcutPatternStarId

public final Id PPointcutPatternStarId()
                                throws ParseException

Throws:
ParseException

PPointcutPatternStar

public final Id PPointcutPatternStar()
                              throws ParseException

Throws:
ParseException

PPointcutPatternIdStar

public final Id PPointcutPatternIdStar()
                                throws ParseException

Throws:
ParseException

PPointcutPatternId

public final Id PPointcutPatternId()
                            throws ParseException

Throws:
ParseException

PWithinPointcutDesignator

public final PointcutExpressao PWithinPointcutDesignator()
                                                  throws ParseException
within "(" Id ")"

Throws:
ParseException

PWithincodePointcutDesignator

public final PointcutExpressao PWithincodePointcutDesignator()
                                                      throws ParseException
withincode "(" Id "." Id ")"

Throws:
ParseException

PCflowPointcutDesignator

public final PointcutExpressao PCflowPointcutDesignator()
                                                 throws ParseException
cflow "(" Id.Id ")"

Throws:
ParseException

PCflowbelowPointcutDesignator

public final PointcutExpressao PCflowbelowPointcutDesignator()
                                                      throws ParseException
cflowbelow "(" Id "." Id ")"

Throws:
ParseException

PEscritaAtributoPointcutDesignator

public final PointcutExpressao PEscritaAtributoPointcutDesignator()
                                                           throws ParseException
set "(" Id "." Id ")"

Throws:
ParseException

PLeituraAtributoPointcutDesignator

public final PointcutExpressao PLeituraAtributoPointcutDesignator()
                                                           throws ParseException
get "(" Id "." Id ")"

Throws:
ParseException

PPointcutExpressaoBooleana

public final PointcutExpressao PPointcutExpressaoBooleana()
                                                   throws ParseException
PointcutExpressaoBooleana

Throws:
ParseException

PPointcutDesignatorBooleanaNot

public final PointcutExpressao PPointcutDesignatorBooleanaNot()
                                                       throws ParseException
PointcutDesignator

Throws:
ParseException

PPointcutExpressaoBooleanaNot

public final PointcutExpressao PPointcutExpressaoBooleanaNot()
                                                      throws ParseException
PointcutExpressao

Throws:
ParseException

PDecAdvice

public final DecAdvice PDecAdvice()
                           throws ParseException
DecAdviceSimples | DecAdvice "," DecAdvice

Throws:
ParseException

PDecAdviceComposto

public final DecAdvice PDecAdviceComposto()
                                   throws ParseException
DecAdvice "," DecAdvice

Throws:
ParseException

PDecAdviceSimples

public final DecAdvice PDecAdviceSimples()
                                  throws ParseException
"before" ":" Id "{" Comando "}" | "after" ":" Id "{" Comando "}" | "around" ":" "{" ComandoAround "}" |

Throws:
ParseException

PDecAdviceBefore

public final DecAdvice PDecAdviceBefore()
                                 throws ParseException
"before" ":" Id "{" Comando "}"

Throws:
ParseException

PDecAdviceAfter

public final DecAdvice PDecAdviceAfter()
                                throws ParseException
"after" ":" Id "{" Comando "}"

Throws:
ParseException

PDecAdviceAround

public final DecAdvice PDecAdviceAround()
                                 throws ParseException
"around" ":" Id "{" ComandoAround "}"

Throws:
ParseException

PComandoAround

public final ComandoAround PComandoAround()
                                   throws ParseException
Comando | Comando "proceed" Comando

Throws:
ParseException

PComandoAroundSimples

public final ComandoAround PComandoAroundSimples()
                                          throws ParseException
ComandoAroundSimples

Throws:
ParseException

PComandoAroundProceed

public final ComandoAround PComandoAroundProceed()
                                          throws ParseException
ComandoAroundProceed

Throws:
ParseException

PDecVariavel

public final DecVariavel PDecVariavel(This thisObject)
                               throws ParseException
DecVariavel ::= Tipo Id "=" Expressao | DecVariavel "," DecVariavel | Tipo Id ":=" "new" Id | "("DecVariavel")"

Throws:
ParseException

PCompostaDecVariavel

public final CompostaDecVariavel PCompostaDecVariavel(This thisObject)
                                               throws ParseException
... DecVariavel "," DecVariavel

Throws:
ParseException

PDecVariavelAtomica

public final DecVariavel PDecVariavelAtomica(This thisObject)
                                      throws ParseException
... Tipo Id "=" Expressao | Tipo Id ":=" "new" Id | "("DecVariavel")"

Throws:
ParseException

PDecVariavelObjeto

public final DecVariavelObjeto PDecVariavelObjeto()
                                           throws ParseException
... Tipo Id ":=" "new" Id

Throws:
ParseException

PSimplesDecVariavel

public final SimplesDecVariavel PSimplesDecVariavel(This thisObject)
                                             throws ParseException
... Tipo Id "=" Expressao

Throws:
ParseException

PDecProcedimento

public final DecProcedimento PDecProcedimento()
                                       throws ParseException
DecProcedimento ::= "proc" Id "("")" "{"Comando"}" | "proc" Id "(" ListaDeclaracaoParametro ")" "{"Comando"}" | DecProcedimento "," DecProcedimento

Throws:
ParseException

PDecProcedimentoComposta

public final DecProcedimentoComposta PDecProcedimentoComposta()
                                                       throws ParseException
... DecProcedimento "," DecProcedimento

Throws:
ParseException

PDecProcedimentoSimples

public final DecProcedimento PDecProcedimentoSimples()
                                              throws ParseException
... "proc" Id "("")" "{"Comando"}"|"proc" Id "(" ListaDeclaracaoParametro ")" "{"Comando"}"

Throws:
ParseException

PListaTipoParametroStar

public final ListaTipoParametro PListaTipoParametroStar()
                                                 throws ParseException
ListaTipoParametro ::= Id

Throws:
ParseException

PListaTipoParametro

public final ListaTipoParametro PListaTipoParametro()
                                             throws ParseException
ListaTipoParametro ::= Id | Id "," ListaTipoParametro

Throws:
ParseException

PTiposValidosListaParametros

public final Token PTiposValidosListaParametros()
                                         throws ParseException
PTiposValidosListaParametros ::= | | |

Throws:
ParseException

PListaDeclaracaoParametro

public final ListaDeclaracaoParametro PListaDeclaracaoParametro()
                                                         throws ParseException
ListaDeclaracaoParametro ::= Tipo Id | Tipo Id "," ListaDeclaracaoParametro

Throws:
ParseException

PDecParametroComposto

public final ListaDeclaracaoParametro PDecParametroComposto()
                                                     throws ParseException
... Tipo Id "," ListaDeclaracaoParametro

Throws:
ParseException

PDecParametroAtomico

public final DecParametro PDecParametroAtomico()
                                        throws ParseException
...Tipo Id

Throws:
ParseException

PTipo

public final Tipo PTipo()
                 throws ParseException
Tipo ::= TipoClasse | TipoPrimitivo

Throws:
ParseException

PTipoPrimitivo

public final Tipo PTipoPrimitivo()
                          throws ParseException
TipoPrimitivo ::= "string" | "int" | "boolean"

Throws:
ParseException

PTipoClasse

public final Tipo PTipoClasse()
                       throws ParseException
TipoClasse ::= Id

Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(OA1ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()