Package org.aspectj.weaver.patterns
Class ThrowsPattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.ThrowsPattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class ThrowsPattern extends PatternNode
-
-
Field Summary
Fields Modifier and Type Field Description static ThrowsPatternANY-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description ThrowsPattern(TypePatternList required, TypePatternList forbidden)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object other)TypePatternListgetForbidden()TypePatternListgetRequired()inthashCode()booleanmatches(UnresolvedType[] tys, World world)ThrowsPatternparameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)static ThrowsPatternread(VersionedDataInputStream s, ISourceContext context)ThrowsPatternresolveBindings(IScope scope, Bindings bindings)StringtoString()Objecttraverse(PatternNodeVisitor visitor, Object data)voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
-
-
-
Field Detail
-
ANY
public static final ThrowsPattern ANY
-
-
Constructor Detail
-
ThrowsPattern
public ThrowsPattern(TypePatternList required, TypePatternList forbidden)
-
-
Method Detail
-
getRequired
public TypePatternList getRequired()
-
getForbidden
public TypePatternList getForbidden()
-
resolveBindings
public ThrowsPattern resolveBindings(IScope scope, Bindings bindings)
-
parameterizeWith
public ThrowsPattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
-
matches
public boolean matches(UnresolvedType[] tys, World world)
-
read
public static ThrowsPattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
traverse
public Object traverse(PatternNodeVisitor visitor, Object data)
- Overrides:
traversein classPatternNode
-
-