protected class GuiEffectVisitor.GuiEffectOverrideChecker extends BaseTypeVisitor.OverrideChecker
isMethodReference, overridden, overriddenReturnType, overriddenType, overrider, overriderReturnType, overriderTree, overriderType
Constructor and Description |
---|
GuiEffectOverrideChecker(Tree overriderTree,
AnnotatedTypeMirror.AnnotatedExecutableType overrider,
AnnotatedTypeMirror overridingType,
AnnotatedTypeMirror overridingReturnType,
AnnotatedTypeMirror.AnnotatedExecutableType overridden,
AnnotatedTypeMirror.AnnotatedDeclaredType overriddenType,
AnnotatedTypeMirror overriddenReturnType)
Create a GuiEffectOverrideChecker.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkReceiverOverride()
Extend the receiver part of the method override check.
|
checkOverride
public GuiEffectOverrideChecker(Tree overriderTree, AnnotatedTypeMirror.AnnotatedExecutableType overrider, AnnotatedTypeMirror overridingType, AnnotatedTypeMirror overridingReturnType, AnnotatedTypeMirror.AnnotatedExecutableType overridden, AnnotatedTypeMirror.AnnotatedDeclaredType overriddenType, AnnotatedTypeMirror overriddenReturnType)
overriderTree
- the AST node of the overriding method or method referenceoverrider
- the type of the overriding methodoverridingType
- the type enclosing the overrider method, usually an
AnnotatedDeclaredType; for Method References may be something elseoverridingReturnType
- the return type of the overriding methodoverridden
- the type of the overridden methodoverriddenType
- the declared type enclosing the overridden methodoverriddenReturnType
- the return type of the overridden methodprotected boolean checkReceiverOverride()
@AlwaysSafe
in a safe
instantiation of a @PolyUIType
. Returns true if the override is permitted.checkReceiverOverride
in class BaseTypeVisitor.OverrideChecker