Package io.determann.shadow.api.shadow
Interface Executable
- All Superinterfaces:
ApiHolder,ElementBacked<ExecutableElement>,MirrorBacked<ExecutableType>,Modifiable,Shadow<ExecutableType>
- All Known Subinterfaces:
Constructor,Method
- All Known Implementing Classes:
ExecutableImpl
any code block. Can be converted into the following using
ShadowApi.convert(Declared)
-
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 thisExecutablebooleanisBridge()The java language and the java virtual machine have different specification.booleanMethods inherited from interface io.determann.shadow.api.ElementBacked
getElement, getJavaDoc, getModifiers, getModule, getSimpleName, logError, logInfo, logWarningMethods inherited from interface io.determann.shadow.api.modifier.Modifiable
hasModifierMethods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, getTypeKind, isTypeKind, representsSameType
-
Method Details
-
getParameters
public MyObject(String param) -
getParameterOrThrow
-
getReturnType
Shadow<TypeMirror> getReturnType() -
getParameterTypes
List<Shadow<TypeMirror>> getParameterTypes() -
getThrows
-
isBridge
boolean isBridge()The java language and the java virtual machine have different specification. Bridge Methods are created to bridge that gap -
isVarArgs
boolean isVarArgs() -
getSurrounding
Declared getSurrounding()returns theDeclaredthat surrounds thisExecutable -
getPackage
Package getPackage() -
getFormalGenerics
List<T> -
getReceiverType
The 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) { } } -
equals
be careful using this equals- Specified by:
equalsin interfaceShadow<ExecutableType>- Overrides:
equalsin classObject- See Also:
-