Home » openjdk-7 » java.lang.invoke » [javadoc | source]
java.lang.invoke
static class: MemberName.Factory [javadoc | source]
java.lang.Object
   java.lang.invoke.MemberName$Factory
A factory type for resolving member names with the help of the VM. TBD: Define access-safe public constructors for this factory.
Field Summary
static  Factory INSTANCE     
Method from java.lang.invoke.MemberName$Factory Summary:
getConstructors,   getFields,   getFields,   getMembers,   getMethods,   getMethods,   getNestedTypes,   resolveInPlace,   resolveOrFail,   resolveOrNull
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.invoke.MemberName$Factory Detail:
 public List<MemberName> getConstructors(Class<?> defc,
    Class<?> lookupClass) 
    Return a list of all constructors defined by the given class. Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 public List<MemberName> getFields(Class<?> defc,
    boolean searchSupers,
    Class<?> lookupClass) 
    Return a list of all fields defined by the given class. Super types are searched (for inherited members) if {@code searchSupers} is true. Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 public List<MemberName> getFields(Class<?> defc,
    boolean searchSupers,
    String name,
    Class<?> type,
    Class<?> lookupClass) 
    Return a list of all fields defined by the given class. Super types are searched (for inherited members) if {@code searchSupers} is true. Returned fields will match the name (if not null) and the type (if not null). Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 List<MemberName> getMembers(Class<?> defc,
    String matchName,
    Object matchType,
    int matchFlags,
    Class<?> lookupClass) 
 public List<MemberName> getMethods(Class<?> defc,
    boolean searchSupers,
    Class<?> lookupClass) 
    Return a list of all methods defined by the given class. Super types are searched (for inherited members) if {@code searchSupers} is true. Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 public List<MemberName> getMethods(Class<?> defc,
    boolean searchSupers,
    String name,
    MethodType type,
    Class<?> lookupClass) 
    Return a list of matching methods defined by the given class. Super types are searched (for inherited members) if {@code searchSupers} is true. Returned methods will match the name (if not null) and the type (if not null). Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 public List<MemberName> getNestedTypes(Class<?> defc,
    boolean searchSupers,
    Class<?> lookupClass) 
    Return a list of all nested types defined by the given class. Super types are searched (for inherited members) if {@code searchSupers} is true. Access checking is performed on behalf of the given {@code lookupClass}. Inaccessible members are not added to the last.
 boolean resolveInPlace(MemberName m,
    boolean searchSupers,
    Class<?> lookupClass) 
 public MemberName resolveOrFail(MemberName m,
    boolean searchSupers,
    Class<?> lookupClass,
    Class<NoSuchMemberException> nsmClass) throws IllegalAccessException, NoSuchMemberException 
    Produce a resolved version of the given member. Super types are searched (for inherited members) if {@code searchSupers} is true. Access checking is performed on behalf of the given {@code lookupClass}. If lookup fails or access is not permitted, a {@linkplain ReflectiveOperationException} is thrown. Otherwise a fresh copy of the given member is returned, with modifier bits filled in.
 public MemberName resolveOrNull(MemberName m,
    boolean searchSupers,
    Class<?> lookupClass) 
    Produce a resolved version of the given member. Super types are searched (for inherited members) if {@code searchSupers} is true. Access checking is performed on behalf of the given {@code lookupClass}. If lookup fails or access is not permitted, null is returned. Otherwise a fresh copy of the given member is returned, with modifier bits filled in.