Home » openjdk-7 » java.lang.invoke » [javadoc | source]
java.lang.invoke
class: FilterGeneric [javadoc | source]
java.lang.Object
   java.lang.invoke.FilterGeneric
These adapters apply arbitrary conversions to arguments on the way to a ultimate target. For simplicity, these are all generically typed.
Nested Class Summary:
abstract static class  FilterGeneric.Adapter  This adapter takes some untyped arguments, and returns an untyped result. Internally, it applies the invoker to the target, which causes the objects to be unboxed; the result is a raw type in L/I/J/F/D. This result is passed to convert, which is responsible for converting the raw result into a boxed object. The invoker is kept separate from the target because it can be generated once per type erasure family, and reused across adapters. 
static enum class  FilterGeneric.Kind   
static class  FilterGeneric.F0   
static class  FilterGeneric.F1   
static class  FilterGeneric.F2   
static class  FilterGeneric.F3   
static class  FilterGeneric.F4   
static class  FilterGeneric.F5   
static class  FilterGeneric.F6   
static class  FilterGeneric.F7   
static class  FilterGeneric.F8   
static class  FilterGeneric.F9   
static class  FilterGeneric.F10   
static class  FilterGeneric.F11   
static class  FilterGeneric.F12   
static class  FilterGeneric.F13   
static class  FilterGeneric.F14   
static class  FilterGeneric.F15   
static class  FilterGeneric.F16   
static class  FilterGeneric.F17   
static class  FilterGeneric.F18   
static class  FilterGeneric.F19   
static class  FilterGeneric.F20   
Constructor:
 FilterGeneric(MethodType entryType) 
    Compute and cache information common to all filtering adapters with the given generic type
Method from java.lang.invoke.FilterGeneric Summary:
buildAdapterFromBytecodes,   entryType,   findAdapter,   getAdapter,   make,   makeArgumentCollector,   makeArgumentFilter,   makeArgumentFolder,   makeFlyby,   makeInstance,   of,   targetType,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.invoke.FilterGeneric Detail:
 static Adapter buildAdapterFromBytecodes(MethodType entryType,
    Kind kind,
    int pos) 
 static MethodType entryType(Kind kind,
    int pos,
    MethodType filterType,
    MethodType targetType) 
 static Adapter findAdapter(MethodType entryType,
    Kind kind,
    int pos) 
 Adapter getAdapter(Kind kind,
    int pos) 
 static MethodHandle make(Kind kind,
    int pos,
    MethodHandle filter,
    MethodHandle target) 
 public static MethodHandle makeArgumentCollector(MethodHandle collector,
    MethodHandle target) 
    Build an adapter of the given generic type, which invokes a collector on the selected incoming argument and all following arguments. The result of the collector replaces all those arguments.
 public static MethodHandle makeArgumentFilter(int pos,
    MethodHandle filter,
    MethodHandle target) 
    Build an adapter of the given generic type, which invokes filter on the selected incoming argument before passing it to the target.
 public static MethodHandle makeArgumentFolder(MethodHandle combiner,
    MethodHandle target) 
    Build an adapter of the given generic type, which invokes a combiner on a selected group of leading arguments. The result of the combiner is prepended before all those arguments.
 public static MethodHandle makeFlyby(MethodHandle filter,
    MethodHandle target) 
    Build an adapter of the given generic type, which invokes a filter on the incoming arguments, reified as a group. The argument may be modified (by side effects in the filter). The arguments, possibly modified, are passed on to the target.
 Adapter makeInstance(Kind kind,
    int pos,
    MethodHandle filter,
    MethodHandle target) 
 static FilterGeneric of(Kind kind,
    int pos,
    MethodType filterType,
    MethodType targetType) 
    Return the adapter information for this target and filter type.
 static MethodType targetType(MethodType entryType,
    Kind kind,
    int pos,
    MethodType filterType) 
 public String toString()