@Deprecated(since = "6.0.0", forRemoval = true)
public class Java8
extends Object
implements VMPlugin
Java 8 based functions.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
checkAccessible(Class<?> callerClass, Class<?> declaringClass, int memberModifiers, boolean allowIllegalAccess) |
|
public boolean |
checkCanSetAccessible(AccessibleObject accessibleObject, Class<?> callerClass)The following scenarios can not set accessible, i.e. the return value is false 1) SecurityException occurred 2) the accessible object is a Constructor object for the Class class |
|
public void |
configureAnnotation(AnnotationNode node) |
|
public void |
configureClassNode(CompileUnit compileUnit, ClassNode classNode) |
|
public static GenericsType |
configureTypeVariableDefinition(ClassNode base, ClassNode[] bounds) |
|
public static ClassNode |
configureTypeVariableReference(String name) |
|
protected void |
fillParameterNames(String[] names, Member member) |
|
public Object |
getInvokeSpecialHandle(Method method, Object receiver) |
|
public Class<?>[] |
getPluginDefaultGroovyMethods() |
|
public Class<?>[] |
getPluginStaticGroovyMethods() |
|
protected Expression |
getValue(Field field)Returns the initial expression for given field. |
|
public int |
getVersion() |
|
public void |
invalidateCallSites() |
|
public Object |
invokeHandle(Object handle, Object[] arguments) |
|
protected ClassNode |
makeClassNode(CompileUnit cu, org.objectweb.asm.Type t, Class<?> c) |
|
protected void |
makeRecordComponents(CompileUnit cu, ClassNode classNode, Class<?> clazz) |
|
protected MethodHandles.Lookup |
newLookup(Class<?> targetClass) |
|
public static MethodHandles.Lookup |
of(Class<?> targetClass) |
|
public void |
setAdditionalClassInformation(ClassNode cn) |
|
protected AnnotationNode |
toAnnotationNode(Annotation annotation) |
|
public MetaMethod |
transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod) |
|
public MetaMethod |
transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod, Class<?> caller) |
|
public boolean |
trySetAccessible(AccessibleObject ao) |
The following scenarios can not set accessible, i.e. the return value is false 1) SecurityException occurred 2) the accessible object is a Constructor object for the Class class
accessibleObject - the accessible object to checkcallerClass - the callerClass to invoke setAccessibleReturns the initial expression for given field.