java.lang.Object
com.pervasive.datarush.coercion.LiveConnectAdvice
-
Method Summary
Modifier and TypeMethodDescriptionstatic LiveConnectAdviceautoImport(Class<?> javaClass) Create a new LiveConnectAdvice to automatically import the given class.booleanReturns the alias to use if auto-importing.Class<?>Returns the java class that this advice describesinthashCode()booleanReturns whether to automatically import this class.withAutoImport(boolean autoImport) Returns a new advice object, equivalent to this, but with auto-import set to the specified value.withImportAs(String importAs) Returns a new advice object, equivalent to this, but with import-as set to the specified value.
-
Method Details
-
autoImport
Create a new LiveConnectAdvice to automatically import the given class.- Parameters:
javaClass- the class- Returns:
- a new LiveConnectAdvice
-
withAutoImport
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
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
Returns the java class that this advice describes- Returns:
- the java class that this advice describes
-
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() -
equals
-