Class JavaMethod

    • Method Detail

      • getDefaultValue

        @PublicAPI(usage=ACCESS)
        public Optional<java.lang.Object> getDefaultValue()
        Returns the default value of this annotation method, if the method is an annotation method and has a declared default. It's analogue to Method.getDefaultValue(), but returns Optional.absent() instead of null.
        Returns:
        Optional.of(defaultValue) if applicable, otherwise Optional.absent()
      • reflect

        public java.lang.reflect.Method reflect()
        Description copied from class: JavaMember
        Resolves the respective Member from the classpath.
        NOTE: This method will throw an exception, if the owning Class or any of its dependencies can't be found on the classpath.
        Specified by:
        reflect in class JavaMember
        Returns:
        The Member equivalent to this JavaMember