APIdia Launch Partner
Top Fields Constructors Methods
com.sun.tools.jnativescan

pack-priv Class NativeMethodFinder

extends Object
Class Inheritance
Imports
com.sun.tools.jnativescan.JNativeScanTask.Diagnostics, .RestrictedUse.NativeMethodDecl, .RestrictedUse.RestrictedMethodRefs, java.io.IOException, java.lang.classfile.Attributes, .ClassModel, .MethodModel, java.lang.classfile.instruction.InvokeInstruction, java.lang.constant.MethodTypeDesc, java.lang.reflect.AccessFlag, java.util.*

Field Summary

Modifier and TypeField and Description
private final Map<MethodRef, Boolean>
private final JNativeScanTask.Diagnostics
private static final String
private final SystemClassResolver

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NativeMethodFinder
create(JNativeScanTask.Diagnostics diagnostics, SystemClassResolver systemClassResolver)

public List<RestrictedUse>
private static Optional<MethodModel>
findMethod(ClassModel classModel, String name, MethodTypeDesc type)

private SortedSet<MethodRef>
private static boolean
private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private final Map<MethodRef, Boolean> cache
diagnosticsback to summary
private final JNativeScanTask.Diagnostics diagnostics
RESTRICTED_NAMEback to summary
private static final String RESTRICTED_NAME
systemClassResolverback to summary
private final SystemClassResolver systemClassResolver

Constructor Detail

NativeMethodFinderback to summary
private NativeMethodFinder(JNativeScanTask.Diagnostics diagnostics, SystemClassResolver systemClassResolver)

Method Detail

createback to summary
public static NativeMethodFinder create(JNativeScanTask.Diagnostics diagnostics, SystemClassResolver systemClassResolver) throws JNativeScanFatalError, IOException
findback to summary
public List<RestrictedUse> find(ClassModel model) throws JNativeScanFatalError
findMethodback to summary
private static Optional<MethodModel> findMethod(ClassModel classModel, String name, MethodTypeDesc type)
findRestrictedMethodInvocationsback to summary
private SortedSet<MethodRef> findRestrictedMethodInvocations(MethodModel methodModel)
hasRestrictedAnnotationback to summary
private static boolean hasRestrictedAnnotation(MethodModel method)
isRestrictedMethodback to summary
private boolean isRestrictedMethod(MethodRef ref) throws JNativeScanFatalError