Example usage for org.aspectj.weaver.patterns TypePatternList TypePatternList

List of usage examples for org.aspectj.weaver.patterns TypePatternList TypePatternList

Introduction

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

Prototype

public TypePatternList(List<TypePattern> l) 

Source Link

Usage

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

License:Open Source License

/**
 * Creates a TypePatternList which contains only the CaesarWildTypePattern needed
 * to match the java.lang.Object name. This is used to create the parameters
 * list when matching the default contructor
 * //from ww w . ja v a 2  s.com
 * @return a list with the pattern for Object
 */
protected TypePatternList createObjectTypeList() {

    ArrayList<NamePattern> names = new ArrayList<NamePattern>();
    names.add(new NamePattern("java.lang.Object"));

    return new TypePatternList(new TypePattern[] { new CaesarWildTypePattern(names, false, 0) });
}

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

License:Open Source License

/**
 * Creates a signator which select constructors:
 * //  w w w  .  jav  a  2  s . c om
 *   * $constructor(..)
 *   
 * @return
 */
protected SignaturePattern createConstructorSignature() {

    return new SignaturePattern(Member.METHOD, ModifiersPattern.ANY, TypePattern.ANY, TypePattern.ANY,
            new NamePattern("$constructor"), new TypePatternList(new TypePattern[] { TypePattern.ELLIPSIS }),
            ThrowsPattern.ANY);
}