Package io.determann.shadow.impl.shadow
Class ExecutableImpl
java.lang.Object
io.determann.shadow.impl.shadow.ShadowImpl<ExecutableType>
io.determann.shadow.impl.shadow.ExecutableImpl
- All Implemented Interfaces:
Annotationable<ExecutableElement>,ApiHolder,ElementBacked<ExecutableElement>,MirrorBacked<ExecutableType>,AbstractModifiable,AccessModifiable,DefaultModifiable,FinalModifiable,Modifiable,NativeModifiable,StaticModifiable,StrictfpModifiable,Constructor,Executable,Method,Shadow<ExecutableType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbe careful using this equalsList<T>getParameterOrThrow(String name) public MyObject(String param)The receiver represents the instance the method is called on.returns theDeclaredthat surrounds thisExecutableinthashCode()booleanisBridge()The java language and the java virtual machine have different specification.booleanbooleanbooleanoverwrittenBy(Method method) booleansameParameterTypes(Method method) Do both methods have the same parameter types in the same order? a() && b() -> true a(String name) && b() -> false a(String name, Long id) && b(Long id, String name) -> false a(String name) && b(String name2) -> true a(List list) && b(List<String> strings) -> true a(List<String> strings) b(List list) -> falsetoString()Methods inherited from class io.determann.shadow.impl.shadow.ShadowImpl
getApi, getMirror, isTypeKind, representsSameTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.determann.shadow.api.modifier.AbstractModifiable
isAbstractMethods inherited from interface io.determann.shadow.api.modifier.AccessModifiable
isPackagePrivate, isPrivate, isProtected, isPublicMethods inherited from interface io.determann.shadow.api.Annotationable
getAnnotationUsages, getDirectAnnotationUsages, getDirectUsageOf, getDirectUsageOfOrThrow, getDirectUsagesOf, getUsageOf, getUsageOfOrThrow, getUsagesOf, isAnnotatedWith, isDirectlyAnnotatedWithMethods inherited from interface io.determann.shadow.api.modifier.DefaultModifiable
isDefaultMethods inherited from interface io.determann.shadow.api.ElementBacked
getJavaDoc, getModifiers, getModule, getSimpleName, logError, logInfo, logWarningMethods inherited from interface io.determann.shadow.api.modifier.FinalModifiable
isFinalMethods inherited from interface io.determann.shadow.api.modifier.Modifiable
hasModifierMethods inherited from interface io.determann.shadow.api.modifier.NativeModifiable
isNativeMethods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, isTypeKind, representsSameTypeMethods inherited from interface io.determann.shadow.api.modifier.StaticModifiable
isStaticMethods inherited from interface io.determann.shadow.api.modifier.StrictfpModifiable
isStrictfp
-
Constructor Details
-
ExecutableImpl
-
-
Method Details
-
getReturnType
- Specified by:
getReturnTypein interfaceExecutable
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceExecutable
-
getReceiverType
Description copied from interface:ExecutableThe receiver represents the instance the method is called on. This language feature is barely used, but makes it possible to annotate "this". Those annotations can only be accessed by refection.public class ReceiverExample { { new ReceiverExample().foo(); } public void foo(ReceiverExample ReceiverExample.this) { } }- Specified by:
getReceiverTypein interfaceExecutable
-
getThrows
- Specified by:
getThrowsin interfaceExecutable
-
isBridge
public boolean isBridge()Description copied from interface:ExecutableThe java language and the java virtual machine have different specification. Bridge Methods are created to bridge that gap- Specified by:
isBridgein interfaceExecutable
-
isVarArgs
public boolean isVarArgs()Description copied from interface:Executable- Specified by:
isVarArgsin interfaceExecutable
-
getSurrounding
Description copied from interface:Executablereturns theDeclaredthat surrounds thisExecutable- Specified by:
getSurroundingin interfaceExecutable
-
getElement
- Specified by:
getElementin interfaceElementBacked<ExecutableElement>
-
getTypeKind
- Specified by:
getTypeKindin interfaceShadow<ExecutableType>
-
overrides
-
overwrittenBy
- Specified by:
overwrittenByin interfaceMethod
-
sameParameterTypes
Description copied from interface:MethodDo both methods have the same parameter types in the same order? a() && b() -> true a(String name) && b() -> false a(String name, Long id) && b(Long id, String name) -> false a(String name) && b(String name2) -> true a(List list) && b(List<String> strings) -> true a(List<String> strings) b(List list) -> false- Specified by:
sameParameterTypesin interfaceMethod
-
getParameters
Description copied from interface:Executablepublic MyObject(String param)- Specified by:
getParametersin interfaceExecutable
-
getParameterOrThrow
- Specified by:
getParameterOrThrowin interfaceExecutable
-
getFormalGenerics
Description copied from interface:ExecutableList<T>- Specified by:
getFormalGenericsin interfaceExecutable
-
getPackage
- Specified by:
getPackagein interfaceExecutable
-
toString
- Overrides:
toStringin classShadowImpl<ExecutableType>
-
hashCode
public int hashCode() -
equals
Description copied from interface:Constructorbe careful using this equals- Specified by:
equalsin interfaceConstructor- Specified by:
equalsin interfaceExecutable- Specified by:
equalsin interfaceMethod- Specified by:
equalsin interfaceShadow<ExecutableType>- Overrides:
equalsin classObject- See Also:
-