Class LiveConnectAdvice


  • public final class LiveConnectAdvice
    extends Object
    • Method Detail

      • autoImport

        public static LiveConnectAdvice autoImport​(Class<?> javaClass)
        Create a new LiveConnectAdvice to automatically import the given class.
        Parameters:
        javaClass - the class
        Returns:
        a new LiveConnectAdvice
      • withAutoImport

        public LiveConnectAdvice withAutoImport​(boolean autoImport)
        Returns a new advice object, equivalent to this, but with auto-import set to the specified value.
        Parameters:
        autoImport - whether to automatically import
        Returns:
        a new advice object
      • withImportAs

        public LiveConnectAdvice withImportAs​(String importAs)
        Returns a new advice object, equivalent to this, but with import-as set to the specified value.
        Parameters:
        importAs - the alias to use for importing. by default this is the short name of the class
        Returns:
        a new advice object
      • getJavaClass

        public Class<?> getJavaClass()
        Returns the java class that this advice describes
        Returns:
        the java class that this advice describes
      • getImportAs

        public String getImportAs()
        Returns the alias to use if auto-importing. By default this is the short name of the class.
        Returns:
        the alias to use if auto-importing
      • isAutoImport

        public boolean isAutoImport()
        Returns whether to automatically import this class.
        Returns:
        whether to automatically import this class.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object