92 import java.util.Collection; |
92 import java.util.Collection; |
93 import java.util.Collections; |
93 import java.util.Collections; |
94 import java.util.Map; |
94 import java.util.Map; |
95 import jdk.internal.dynalink.support.Lookup; |
95 import jdk.internal.dynalink.support.Lookup; |
96 |
96 |
97 |
|
98 /** |
97 /** |
99 * Base for classes that expose class field and method information to an {@link AbstractJavaLinker}. There are |
98 * Base for classes that expose class field and method information to an {@link AbstractJavaLinker}. There are |
100 * subclasses for instance (bean) and static facet of a class. |
99 * subclasses for instance (bean) and static facet of a class. |
101 * @author Attila Szegedi |
100 * @author Attila Szegedi |
102 */ |
101 */ |
103 abstract class FacetIntrospector implements AutoCloseable { |
102 abstract class FacetIntrospector { |
104 private final Class<?> clazz; |
103 private final Class<?> clazz; |
105 private final boolean instance; |
104 private final boolean instance; |
106 private final boolean isRestricted; |
105 private final boolean isRestricted; |
107 |
106 |
108 protected final AccessibleMembersLookup membersLookup; |
107 protected final AccessibleMembersLookup membersLookup; |