List of usage examples for org.aspectj.weaver.patterns TypePatternList TypePatternList
public TypePatternList(List<TypePattern> l)
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); }