Example usage for org.aspectj.weaver Shadow getKind

List of usage examples for org.aspectj.weaver Shadow getKind

Introduction

In this page you can find the example usage for org.aspectj.weaver Shadow getKind.

Prototype

public Kind getKind() 

Source Link

Document

returns the kind of shadow this is, representing what happens under this shadow

Usage

From source file:org.caesarj.compiler.aspectj.CaesarKindedPointcut.java

License:Open Source License

public FuzzyBoolean match(Shadow shadow) {
    if (shadow.getKind() != kind)
        return FuzzyBoolean.NO;

    if (!signature.matches(shadow.getSignature(), shadow.getIWorld())) {
        if (kind == Shadow.MethodCall) {
            warnOnConfusingSig(shadow);/*from  w  w  w  .j  av a  2  s  . c om*/
        }
        return FuzzyBoolean.NO;
    }

    return FuzzyBoolean.YES;
}