Interface JavaMember

All Known Subinterfaces:
JavaConstructor, JavaExecutable, JavaField, JavaMethod
All Known Implementing Classes:
DefaultJavaConstructor, DefaultJavaExecutable, DefaultJavaField, DefaultJavaMethod, JavaMethodDelegate

public interface JavaMember
JavaModel representation of a Member including related methods of Modifier
Since:
2.0
  • Method Details

    • getModifiers

      List<String> getModifiers()
      Equivalent of Member.getModifiers() This does not follow the java-api With the Member-class, getModifiers returns an int, which should be decoded with the Modifier. If this member was extracted from a source, it will keep its order. Otherwise if will be in the preferred order of the java-api.
      Returns:
      all modifiers is this member
    • getDeclaringClass

      JavaClass getDeclaringClass()
      Returns:
      the declaring class
    • getName

      String getName()
      Equivalent of Member.getName()
      Returns:
      the name of this member
    • isAbstract

      boolean isAbstract()
      Returns:
      true if this member is abstract, otherwise false
    • isFinal

      boolean isFinal()
      Equivalent of Modifier.isFinal(int)
      Returns:
      true is this member is final, otherwise false
    • isNative

      boolean isNative()
      Returns:
      true if this member is native, otherwise false
    • isPrivate

      boolean isPrivate()
      Returns:
      true if this member is private, otherwise false
    • isProtected

      boolean isProtected()
      Returns:
      true if this member is protected; otherwise false
    • isPublic

      boolean isPublic()
      Returns:
      true if this member is public, otherwise false
    • isStatic

      boolean isStatic()
      Returns:
      true if this member is static, otherwise false
    • isStrictfp

      boolean isStrictfp()
      Returns:
      true if this member is strictfp, otherwise false
    • isSynchronized

      boolean isSynchronized()
      Returns:
      true if this member is synchronized, otherwise false
    • isTransient

      boolean isTransient()
      Returns:
      true if this member is transient, otherwise false
    • isVolatile

      boolean isVolatile()
      Returns:
      true if this member is volatile, otherwise false