Interface HasOwner<T>
- Type Parameters:
T
- The type of the "owner", e.g. a
as the owner of aJavaClass
JavaMember
- All Known Implementing Classes:
AccessTarget
,AccessTarget.CodeUnitAccessTarget
,AccessTarget.CodeUnitCallTarget
,AccessTarget.CodeUnitReferenceTarget
,AccessTarget.ConstructorCallTarget
,AccessTarget.ConstructorReferenceTarget
,AccessTarget.FieldAccessTarget
,AccessTarget.MethodCallTarget
,AccessTarget.MethodReferenceTarget
,InstanceofCheck
,JavaAccess
,JavaAnnotation
,JavaCall
,JavaCodeUnit
,JavaCodeUnitAccess
,JavaCodeUnitReference
,JavaConstructor
,JavaConstructorCall
,JavaConstructorReference
,JavaField
,JavaFieldAccess
,JavaMember
,JavaMethod
,JavaMethodCall
,JavaMethodReference
,JavaParameter
,JavaStaticInitializer
,JavaTypeVariable
,ReferencedClassObject
,ThrowsClause
,ThrowsDeclaration
,TryCatchBlock
A highly context dependent definition of something that has a higher order "owner". In general the owner
refers to a concept where this object is part of. For example a
In general the owner is an instance of the next more complex concept where this object is a part of. A declared
JavaMember
is owned
by the JavaClass
that declares this member (i.e. "belongs to" this JavaClass
).In general the owner is an instance of the next more complex concept where this object is a part of. A declared
Throwable
is owned by the declaration which is in turn owned by the method that declares it,
an annotation parameter is owned by the annotation that declares it, etc.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
Predefinedpredicates
targeting objects that implementHasOwner
-
Method Summary
-
Method Details
-
getOwner
- Returns:
- The "owner" of this object, compare
HasOwner
-