Example usage for org.aspectj.weaver.patterns TypePattern resolveBindings

List of usage examples for org.aspectj.weaver.patterns TypePattern resolveBindings

Introduction

In this page you can find the example usage for org.aspectj.weaver.patterns TypePattern resolveBindings.

Prototype

public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding,
        boolean requireExactType) 

Source Link

Document

This can modify in place, or return a new TypePattern if the type changes.

Usage

From source file:com.freetmp.common.type.filter.AspectJTypeFilter.java

License:Apache License

public AspectJTypeFilter(String typePatternExpression, ClassLoader classLoader) {
    this.world = new BcelWorld(classLoader, IMessageHandler.THROW, null);
    this.world.setBehaveInJava5Way(true);
    PatternParser patternParser = new PatternParser(typePatternExpression);
    TypePattern typePattern = patternParser.parseTypePattern();
    typePattern.resolve(this.world);
    IScope scope = new SimpleScope(this.world, new FormalBinding[0]);
    this.typePattern = typePattern.resolveBindings(scope, Bindings.NONE, false, false);
}