Package io.ran

Class ClazzMethod

java.lang.Object
io.ran.ClazzMethod

public class ClazzMethod extends Object
  • Constructor Details

    • ClazzMethod

      public ClazzMethod(Clazz<?> actualClass, Clazz<?> declaringClass, Method method)
    • ClazzMethod

      public ClazzMethod(Clazz<?> actualClass, Method method)
  • Method Details

    • getName

      public String getName()
    • parameters

      public List<ClazzMethodParameter> parameters()
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annotation)
    • matches

      public boolean matches(String token)
    • getModifiers

      public int getModifiers()
    • getMethod

      public Method getMethod()
    • isAbstract

      public boolean isAbstract()
    • isFinal

      public boolean isFinal()
    • isPrivate

      public boolean isPrivate()
    • isProtected

      public boolean isProtected()
    • isPublic

      public boolean isPublic()
    • isStatic

      public boolean isStatic()
    • isSynchronized

      public boolean isSynchronized()
    • hasGenericFromClass

      public boolean hasGenericFromClass()
      Returns:
      true when the method either returns or takes generic parameters defined at class-level. Method level parameter containing class level parameter does not count.
    • hasGenericFromMethod

      public boolean hasGenericFromMethod()
      Returns:
      true if the method either returns or takes generic parameters defined at method-level. Wildcards are treated as method-level generic types.
    • getReturnType

      public Clazz<?> getReturnType()
    • getDeclaringClazz

      public Clazz<?> getDeclaringClazz()
    • getSignature

      public MethodSignature getSignature()
    • getAccess

      public Access getAccess()