public class JavetProxyPluginClass extends BaseJavetProxyPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The constant NAME.
|
HINT_BOOLEAN, HINT_DEFAULT, HINT_NUMBER, HINT_STRING, OBJECT_CONVERTER, PROXY_CONVERTER, TO_JSON, TO_STRING, VALUE_OF
Constructor and Description |
---|
JavetProxyPluginClass()
Instantiates a new Javet proxy plugin class.
|
Modifier and Type | Method and Description |
---|---|
static JavetProxyPluginClass |
getInstance()
Gets instance.
|
java.lang.String |
getName()
Gets the plugin name.
|
<E extends java.lang.Exception> |
getProxyGetByString(java.lang.Class<?> targetClass,
java.lang.String propertyName)
Gets proxy get function by string property.
|
<E extends java.lang.Exception> |
getProxyGetBySymbol(java.lang.Class<?> targetClass,
java.lang.String symbolName)
Gets proxy get function by symbol property.
|
boolean |
isMethodProxyable(java.lang.String methodName,
java.lang.Class<?> targetClass)
Is method proxyable.
|
boolean |
isProxyable(java.lang.Class<?> targetClass)
Is the target class proxyable.
|
callWithObjectConverter, deleteByObject, getByIndex, getProxyOwnKeys, getProxyOwnPropertyDescriptor, getProxySymbolToPrimitive, getTargetObjectConstructor, hasByObject, isDeleteSupported, isHasSupported, isIndexSupported, isOwnKeysSupported, isUniqueKeySupported, populateUniqueKeys, setByIndex, symbolToPrimitive, typeErrorFunctionIsNotSupported
public JavetProxyPluginClass()
public static JavetProxyPluginClass getInstance()
public java.lang.String getName()
IClassProxyPlugin
public <E extends java.lang.Exception> IClassProxyPluginFunction<E> getProxyGetByString(java.lang.Class<?> targetClass, java.lang.String propertyName)
IClassProxyPlugin
E
- the type parametertargetClass
- the target classpropertyName
- the property namepublic <E extends java.lang.Exception> IClassProxyPluginFunction<E> getProxyGetBySymbol(java.lang.Class<?> targetClass, java.lang.String symbolName)
IClassProxyPlugin
getProxyGetBySymbol
in interface IClassProxyPlugin
getProxyGetBySymbol
in class BaseJavetProxyPlugin
E
- the type parametertargetClass
- the target classsymbolName
- the symbol namepublic boolean isMethodProxyable(java.lang.String methodName, java.lang.Class<?> targetClass)
IClassProxyPlugin
methodName
- the method nametargetClass
- the target classpublic boolean isProxyable(java.lang.Class<?> targetClass)
IClassProxyPlugin
targetClass
- the target class