nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/linker/TypeBasedGuardingDynamicLinker.java
changeset 33333 0bad500ce4e0
parent 33007 03119bfefbbf
child 33337 af3fea63e008
equal deleted inserted replaced
33332:f180be6368d8 33333:0bad500ce4e0
    81        ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    81        ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    82 */
    82 */
    83 
    83 
    84 package jdk.internal.dynalink.linker;
    84 package jdk.internal.dynalink.linker;
    85 
    85 
       
    86 import jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker;
       
    87 
    86 /**
    88 /**
    87  * A guarding dynamic linker that can determine whether it can link the call site solely based on the type of the first
    89  * A guarding dynamic linker that can determine whether it can link the call site solely based on the type of the first
    88  * argument at linking invocation time. (The first argument is usually the receiver class). Most language-specific
    90  * argument at linking invocation time. (The first argument is usually the receiver). Most language-specific
    89  * linkers will fall into this category, as they recognize their native objects as Java objects of classes implementing
    91  * linkers will fall into this category, as they recognize their native objects as Java objects of classes implementing
    90  * a specific language-native interface or superclass. The linker mechanism can optimize the dispatch for these linkers.
    92  * a specific language-native interface or superclass. The linker mechanism can optimize the dispatch for these linkers,
       
    93  * see {@link CompositeTypeBasedGuardingDynamicLinker}.
    91  */
    94  */
    92 public interface TypeBasedGuardingDynamicLinker extends GuardingDynamicLinker {
    95 public interface TypeBasedGuardingDynamicLinker extends GuardingDynamicLinker {
    93     /**
    96     /**
    94      * Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.
    97      * Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.
    95      *
    98      *