Class BenchmarkClassModel.MethodModel

    • Constructor Detail

      • MethodModel

        public MethodModel()
    • Method Detail

      • name

        public abstract String name()
        Returns the name of this method.
      • modifiers

        public abstract int modifiers()
        Returns the modifiers for this method.
      • declaringClass

        public abstract String declaringClass()
        Returns the class that declared this method.
      • returnType

        public abstract com.google.common.base.Optional<String> returnType()
        Returns the method's return type, or absent for a void method.
      • parameterTypes

        public abstract com.google.common.collect.ImmutableList<String> parameterTypes()
        Returns the method's parameter types.
      • exceptionTypes

        public abstract com.google.common.collect.ImmutableSet<String> exceptionTypes()
        Returns the types of exceptions the method declares that it may throw.
      • annotationTypes

        public abstract com.google.common.collect.ImmutableSet<String> annotationTypes()
        Returns the types of annotations that are present on the method.
      • isAnnotationPresent

        public final boolean isAnnotationPresent​(String annotationTypeName)
        Returns whether or not the set of annotationTypes() contains an annotation with the given type name.
      • isAnnotationPresent

        public final boolean isAnnotationPresent​(Class<?> annotationType)
        Returns whether or not the set of annotationTypes() contains an annotation of the given type.