Package org.aspectj.weaver.patterns
Class DeclareParents
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.Declare
-
- org.aspectj.weaver.patterns.DeclareParents
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
DeclareParentsMixin
public class DeclareParents extends Declare
-
-
Field Summary
Fields Modifier and Type Field Description protected TypePatternchildprotected booleanisExtendsprotected TypePatternListparents-
Fields inherited from class org.aspectj.weaver.patterns.Declare
ANNOTATION, DOMINATES, ERROR_OR_WARNING, PARENTS, PARENTSMIXIN, SOFT, TYPE_ERROR_OR_WARNING
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Modifier Constructor Description DeclareParents(TypePattern child, List<TypePattern> parents, boolean isExtends)protectedDeclareParents(TypePattern child, TypePatternList parents, boolean isExtends)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object other)List<ResolvedType>findMatchingNewParents(ResolvedType onType, boolean reportErrors)TypePatterngetChild()StringgetNameSuffix()TypePatternListgetParents()inthashCode()booleanisAdviceLike()booleanisExtends()booleanisMixin()booleanmatch(ResolvedType typeX)DeclareparameterizeWith(Map<String,UnresolvedType> typeVariableBindingMap, World w)booleanparentsIncludeClass(World w)booleanparentsIncludeInterface(World w)static Declareread(VersionedDataInputStream s, ISourceContext context)voidresolve(IScope scope)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.Declare
getDeclaringType, setDeclaringType
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Field Detail
-
child
protected TypePattern child
-
parents
protected TypePatternList parents
-
isExtends
protected boolean isExtends
-
-
Constructor Detail
-
DeclareParents
public DeclareParents(TypePattern child, List<TypePattern> parents, boolean isExtends)
-
DeclareParents
protected DeclareParents(TypePattern child, TypePatternList parents, boolean isExtends)
-
-
Method Detail
-
match
public boolean match(ResolvedType typeX)
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
parameterizeWith
public Declare parameterizeWith(Map<String,UnresolvedType> typeVariableBindingMap, World w)
- Specified by:
parameterizeWithin classDeclare
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static Declare read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
parentsIncludeInterface
public boolean parentsIncludeInterface(World w)
-
parentsIncludeClass
public boolean parentsIncludeClass(World w)
-
getParents
public TypePatternList getParents()
-
getChild
public TypePattern getChild()
-
isExtends
public boolean isExtends()
-
isAdviceLike
public boolean isAdviceLike()
- Specified by:
isAdviceLikein classDeclare
-
findMatchingNewParents
public List<ResolvedType> findMatchingNewParents(ResolvedType onType, boolean reportErrors)
-
getNameSuffix
public String getNameSuffix()
- Specified by:
getNameSuffixin classDeclare
-
isMixin
public boolean isMixin()
-
-