public class DeclareSoft extends Declare
ANNOTATION, DOMINATES, ERROR_OR_WARNING, PARENTS, PARENTSMIXIN, SOFT, TYPE_ERROR_OR_WARNINGend, sourceContext, start| Constructor and Description |
|---|
DeclareSoft(TypePattern exception,
Pointcut pointcut) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
equals(java.lang.Object other) |
TypePattern |
getException() |
java.lang.String |
getNameSuffix()
Declares have methods in the .class file against which info can be stored (for example, the annotation in the case of declare
annotation).
|
Pointcut |
getPointcut() |
int |
hashCode() |
boolean |
isAdviceLike()
Indicates if this declare should be treated like advice.
|
Declare |
parameterizeWith(java.util.Map typeVariableBindingMap,
World w)
Returns a version of this declare element in which all references to type variables are replaced with their bindings given in
the map.
|
static Declare |
read(VersionedDataInputStream s,
ISourceContext context) |
void |
resolve(IScope scope)
Returns this declare mutated
|
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
getDeclaringType, setDeclaringTypecopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationpublic DeclareSoft(TypePattern exception, Pointcut pointcut)
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNodepublic Declare parameterizeWith(java.util.Map typeVariableBindingMap, World w)
DeclareparameterizeWith in class Declarepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic static Declare read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOExceptionpublic Pointcut getPointcut()
public TypePattern getException()
public void resolve(IScope scope)
Declarepublic boolean isAdviceLike()
DeclareisAdviceLike in class Declarepublic java.lang.String getNameSuffix()
DeclaregetNameSuffix in class Declare