Interface IJavaClassInfo

    • Field Detail

      • LOCK

        static final java.lang.Object LOCK
    • Method Detail

      • getNameSignature

        java.lang.String getNameSignature()
      • getRelativeName

        java.lang.String getRelativeName()
      • getDisplayName

        java.lang.String getDisplayName()
      • isEnum

        boolean isEnum()
      • isPrimitive

        boolean isPrimitive()
      • isAnnotation

        boolean isAnnotation()
      • isInterface

        boolean isInterface()
      • isAssignableFrom

        boolean isAssignableFrom​(IJavaClassInfo aClass)
      • isPublic

        boolean isPublic()
      • isProtected

        boolean isProtected()
      • isInternal

        boolean isInternal()
      • isPrivate

        boolean isPrivate()
      • newInstance

        java.lang.Object newInstance()
                              throws java.lang.InstantiationException,
                                     java.lang.IllegalAccessException
        Throws:
        java.lang.InstantiationException
        java.lang.IllegalAccessException
      • getMethod

        IJavaClassMethod getMethod​(java.lang.String methodName,
                                   IJavaClassInfo... paramTypes)
                            throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException
      • getDeclaredMethod

        IJavaClassMethod getDeclaredMethod​(java.lang.String methodName,
                                           IJavaClassInfo... params)
                                    throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException
      • getDeclaredField

        default IJavaClassField getDeclaredField​(java.lang.String name)
      • getEnumConstants

        java.lang.Object[] getEnumConstants()
      • getJavaType

        IType getJavaType()
      • hasCustomBeanInfo

        boolean hasCustomBeanInfo()
      • isHiddenViaFeatureDescriptor

        boolean isHiddenViaFeatureDescriptor()
      • getModifiers

        int getModifiers()
      • getEnclosingType

        IType getEnclosingType()
      • getBackingClass

        java.lang.Class getBackingClass()
      • equals

        boolean equals​(java.lang.Object o)
        Two IJavaClassInfo instances are equal if they are both non-arrays and have the same name and module. If the two instances are arrays, then they are equal if their component types are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other object
        Returns:
        whether the two objects represent the same class.
      • hashCode

        int hashCode()
        In order to maintain consistency with equals(Object), the hash code of a non-array IJavaClassInfo must be computed as follows:

        getName().hashCode() * 31 + getModule().hashCode()

        For arrays, the hashCode is equal to the hashCode of the component type.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • getDeepestClassAtOffset

        default IJavaClassInfo getDeepestClassAtOffset​(int offset)
      • isCompilable

        default boolean isCompilable()
      • compile

        default byte[] compile()