Interface Executable

All Superinterfaces:
ApiHolder, ElementBacked<ExecutableElement>, MirrorBacked<ExecutableType>, Modifiable, Shadow<ExecutableType>
All Known Subinterfaces:
Constructor, Method
All Known Implementing Classes:
ExecutableImpl

public interface Executable extends Shadow<ExecutableType>, ElementBacked<ExecutableElement>
any code block. Can be converted into the following using ShadowApi.convert(Declared)
  • Method Details

    • getParameters

      List<Parameter> getParameters()
      public MyObject(String param)
    • getParameterOrThrow

      Parameter getParameterOrThrow(String name)
    • getReturnType

      Shadow<TypeMirror> getReturnType()
    • getParameterTypes

      List<Shadow<TypeMirror>> getParameterTypes()
    • getThrows

      List<Class> 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 the Declared that surrounds this Executable
    • getPackage

      Package getPackage()
    • getFormalGenerics

      List<Generic> getFormalGenerics()
      List<T>
    • getReceiverType

      Optional<Declared> 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

      boolean equals(Object obj)
      be careful using this equals
      Specified by:
      equals in interface Shadow<ExecutableType>
      Overrides:
      equals in class Object
      See Also: