Package org.aspectj.weaver.patterns
Klasse DeclareParents
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.Declare
org.aspectj.weaver.patterns.DeclareParents
- Alle implementierten Schnittstellen:
IHasPosition
,IHasSourceLocation
- Bekannte direkte Unterklassen:
DeclareParentsMixin
- Autor:
- Thomas Kiviaho, Andy Clement, PARC
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected TypePattern
protected boolean
protected TypePatternList
Von Klasse geerbte Felder org.aspectj.weaver.patterns.Declare
ANNOTATION, DOMINATES, ERROR_OR_WARNING, PARENTS, PARENTSMIXIN, SOFT, TYPE_ERROR_OR_WARNING
Von Klasse geerbte Felder org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungDeclareParents
(TypePattern child, List<TypePattern> parents, boolean isExtends) protected
DeclareParents
(TypePattern child, TypePatternList parents, boolean isExtends) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaccept
(PatternNodeVisitor visitor, Object data) boolean
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).int
hashCode()
boolean
Indicates if this declare should be treated like advice.boolean
boolean
isMixin()
boolean
match
(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.boolean
boolean
static Declare
read
(VersionedDataInputStream s, ISourceContext context) void
Returns this declare mutatedtoString()
traverse
(PatternNodeVisitor visitor, Object data) void
Von Klasse geerbte Methoden org.aspectj.weaver.patterns.Declare
getDeclaringType, setDeclaringType
Von Klasse geerbte Methoden org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Felddetails
-
child
-
parents
-
isExtends
protected boolean isExtends
-
-
Konstruktordetails
-
DeclareParents
-
DeclareParents
-
-
Methodendetails
-
match
-
accept
- Angegeben von:
accept
in KlassePatternNode
-
traverse
- Setzt außer Kraft:
traverse
in KlassePatternNode
-
parameterizeWith
Beschreibung aus Klasse kopiert:Declare
Returns a version of this declare element in which all references to type variables are replaced with their bindings given in the map.- Angegeben von:
parameterizeWith
in KlasseDeclare
-
toString
-
equals
-
hashCode
public int hashCode() -
write
- Angegeben von:
write
in KlassePatternNode
- Löst aus:
IOException
-
read
- Löst aus:
IOException
-
parentsIncludeInterface
-
parentsIncludeClass
-
resolve
Beschreibung aus Klasse kopiert:Declare
Returns this declare mutated -
getParents
-
getChild
-
isExtends
public boolean isExtends() -
isAdviceLike
public boolean isAdviceLike()Beschreibung aus Klasse kopiert:Declare
Indicates if this declare should be treated like advice. If true, the declare will have no effect in an abstract aspect. It will be inherited by any concrete aspects and will have an effect for each concrete aspect it is ultimately inherited by.- Angegeben von:
isAdviceLike
in KlasseDeclare
-
findMatchingNewParents
-
getNameSuffix
Beschreibung aus Klasse kopiert:Declare
Declares have methods in the .class file against which info can be stored (for example, the annotation in the case of declare annotation). The name is of the form ajc$declare_XXX_NNN where XXX can optionally be set in this 'getNameSuffix()' method - depending on whether, at weave time, we want to easily differentiate between the declare methods.- Angegeben von:
getNameSuffix
in KlasseDeclare
-
isMixin
public boolean isMixin()
-