plp.orientadaAspectos1.memoria
Class Pointcut

java.lang.Object
  extended by plp.orientadaAspectos1.memoria.Pointcut

public class Pointcut
extends java.lang.Object

Classe que representa um pointcut na memória


Constructor Summary
Pointcut(Id id, PointcutExpressao pe)
          Construtor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Id getId()
          Retorna o identificador deste pointcut
 boolean intercept(Interceptavel interceptavel, AmbienteExecucao ambiente)
          Verifica se este pointcut intercepta um comando
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pointcut

public Pointcut(Id id,
                PointcutExpressao pe)
Construtor

Parameters:
id - Identificador do pointcut
pe - Expressao que define o pointcut
Method Detail

getId

public Id getId()
Retorna o identificador deste pointcut

Returns:
o identificador deste pointcut

intercept

public boolean intercept(Interceptavel interceptavel,
                         AmbienteExecucao ambiente)
                  throws ObjetoJaDeclaradoException,
                         ProcedimentoNaoDeclaradoException,
                         ProcedimentoJaDeclaradoException,
                         ClasseJaDeclaradaException,
                         ClasseNaoDeclaradaException,
                         EntradaInvalidaException,
                         PointcutNaoDeclaradoException,
                         UnsuporttedAdviceAroundForAccessAttributeException
Verifica se este pointcut intercepta um comando

Parameters:
comando - O comando a ser interceptado
ambiente - O ambiente de execução
Returns:
true se intercepta o comando, false caso contrario
Throws:
PointcutNaoDeclaradoException
EntradaInvalidaException
ClasseNaoDeclaradaException
ClasseJaDeclaradaException
ProcedimentoJaDeclaradoException
ProcedimentoNaoDeclaradoException
ObjetoJaDeclaradoException
UnsuporttedAdviceAroundForAccessAttributeException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object