Class ClassSource

    • Method Detail

      • from

        public static ClassSource from​(java.lang.String className)
        Create a new ClassSource using the supplied className.
        Parameters:
        className - the Java class name; must not be null
      • from

        public static ClassSource from​(java.lang.String className,
                                       FilePosition filePosition)
        Create a new ClassSource using the supplied className and filePosition.
        Parameters:
        className - the Java class name; must not be null
        filePosition - the position in the Java source file; may be null
      • from

        public static ClassSource from​(java.lang.Class<?> javaClass)
        Create a new ClassSource using the supplied javaClass.
        Parameters:
        javaClass - the Java class; must not be null
      • from

        public static ClassSource from​(java.lang.Class<?> javaClass,
                                       FilePosition filePosition)
        Create a new ClassSource using the supplied javaClass and filePosition.
        Parameters:
        javaClass - the Java class; must not be null
        filePosition - the position in the Java source file; may be null
      • getClassName

        public final java.lang.String getClassName​()
        Get the class name of this source.
        See Also:
        getPosition()
      • getJavaClass

        public final java.lang.Class<?> getJavaClass​()
        Get the Java class of this source.
        See Also:
        getPosition()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object