Class ReflectMethodImpl

java.lang.Object
org.teavm.metaprogramming.impl.reflect.ReflectMethodImpl
All Implemented Interfaces:
org.teavm.metaprogramming.reflect.ReflectAnnotatedElement, org.teavm.metaprogramming.reflect.ReflectMember, org.teavm.metaprogramming.reflect.ReflectMethod

public class ReflectMethodImpl extends Object implements org.teavm.metaprogramming.reflect.ReflectMethod
  • Field Details

    • method

      public final org.teavm.model.MethodReader method
  • Constructor Details

    • ReflectMethodImpl

      public ReflectMethodImpl(ReflectClassImpl<?> declaringClass, org.teavm.model.MethodReader method)
  • Method Details

    • getDeclaringClass

      public org.teavm.metaprogramming.ReflectClass<?> getDeclaringClass()
      Specified by:
      getDeclaringClass in interface org.teavm.metaprogramming.reflect.ReflectMember
    • getName

      public String getName()
      Specified by:
      getName in interface org.teavm.metaprogramming.reflect.ReflectMember
    • getModifiers

      public int getModifiers()
      Specified by:
      getModifiers in interface org.teavm.metaprogramming.reflect.ReflectMember
    • isConstructor

      public boolean isConstructor()
      Specified by:
      isConstructor in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • getReturnType

      public org.teavm.metaprogramming.ReflectClass<?> getReturnType()
      Specified by:
      getReturnType in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • getParameterTypes

      public org.teavm.metaprogramming.ReflectClass<?>[] getParameterTypes()
      Specified by:
      getParameterTypes in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • getParameterType

      public org.teavm.metaprogramming.ReflectClass<?> getParameterType(int index)
      Specified by:
      getParameterType in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • getParameterCount

      public int getParameterCount()
      Specified by:
      getParameterCount in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • getAnnotation

      public <S extends Annotation> S getAnnotation(Class<S> type)
      Specified by:
      getAnnotation in interface org.teavm.metaprogramming.reflect.ReflectAnnotatedElement
    • invoke

      public Object invoke(Object obj, Object... args)
      Specified by:
      invoke in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • construct

      public Object construct(Object... args)
      Specified by:
      construct in interface org.teavm.metaprogramming.reflect.ReflectMethod
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getParameterAnnotations

      public org.teavm.metaprogramming.reflect.ReflectAnnotatedElement getParameterAnnotations(int index)
      Specified by:
      getParameterAnnotations in interface org.teavm.metaprogramming.reflect.ReflectMethod