public final class LiveConnectAdvice extends Object
Modifier and Type | Method and Description |
---|---|
static LiveConnectAdvice |
autoImport(Class<?> javaClass)
Create a new LiveConnectAdvice to automatically import the given class.
|
boolean |
equals(Object o) |
String |
getImportAs()
Returns the alias to use if auto-importing.
|
Class<?> |
getJavaClass()
Returns the java class that this advice describes
|
int |
hashCode() |
boolean |
isAutoImport()
Returns whether to automatically import this class.
|
LiveConnectAdvice |
withAutoImport(boolean autoImport)
Returns a new advice object, equivalent to this, but with auto-import
set to the specified value.
|
LiveConnectAdvice |
withImportAs(String importAs)
Returns a new advice object, equivalent to this, but with import-as
set to the specified value.
|
public static LiveConnectAdvice autoImport(Class<?> javaClass)
javaClass
- the classpublic LiveConnectAdvice withAutoImport(boolean autoImport)
autoImport
- whether to automatically importpublic LiveConnectAdvice withImportAs(String importAs)
importAs
- the alias to use for importing. by default this is the
short name of the classpublic Class<?> getJavaClass()
public String getImportAs()
public boolean isAutoImport()
Copyright © 2016 Actian Corporation. All rights reserved.