Class DeclareParentsMixin
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Declare
org.aspectj.weaver.patterns.DeclareParents
org.aspectj.weaver.patterns.DeclareParentsMixin
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
Constructed based on an @DeclareMixin being found in an aspect.
- Author:
- Andy Clement
-
Field Summary
Fields inherited from class DeclareParents
child, isExtends, parentsModifier and TypeFieldDescriptionprotected TypePatternprotected booleanprotected TypePatternListFields inherited from class Declare
ANNOTATION, DOMINATES, ERROR_OR_WARNING, PARENTS, PARENTSMIXIN, SOFT, TYPE_ERROR_OR_WARNINGModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsConstructorDescriptionDeclareParentsMixin(TypePattern child, List parents) DeclareParentsMixin(TypePattern child, TypePatternList parents) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisMixin()static Declareread(VersionedDataInputStream s, ISourceContext context) toString()voidMethods inherited from class DeclareParents
accept, findMatchingNewParents, getChild, getNameSuffix, getParents, isAdviceLike, isExtends, match, parameterizeWith, parentsIncludeClass, parentsIncludeInterface, resolve, traverseModifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) findMatchingNewParents(ResolvedType onType, boolean reportErrors) getChild()Declares have methods in the .class file against which info can be stored (for example, the annotation in the case of declare annotation).booleanIndicates if this declare should be treated like advice.booleanbooleanmatch(ResolvedType typeX) parameterizeWith(Map<String, UnresolvedType> 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.booleanbooleanvoidReturns this declare mutatedtraverse(PatternNodeVisitor visitor, Object data) Methods inherited from class Declare
getDeclaringType, setDeclaringTypeMethods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocationModifier and TypeMethodDescriptionvoidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) void
-
Constructor Details
-
DeclareParentsMixin
-
DeclareParentsMixin
-
-
Method Details
-
equals
- Overrides:
equalsin classDeclareParents
-
hashCode
public int hashCode()- Overrides:
hashCodein classDeclareParents
-
write
- Overrides:
writein classDeclareParents- Throws:
IOException
-
read
- Throws:
IOException
-
toString
- Overrides:
toStringin classDeclareParents
-
isMixin
public boolean isMixin()- Overrides:
isMixinin classDeclareParents
-