Package com.headius.invokebinder.transform

Examples of com.headius.invokebinder.transform.Cast


     *
     * @param type the target MethodType
     * @return a new Binder
     */
    public Binder cast(MethodType type) {
        return new Binder(this, new Cast(type()), type);
    }
View Full Code Here


     * @param returnType the target return type
     * @param argTypes   the target argument types
     * @return a new Binder
     */
    public Binder cast(Class returnType, Class... argTypes) {
        return new Binder(this, new Cast(type()), MethodType.methodType(returnType, argTypes));
    }
View Full Code Here

     * @param firstType  the first argument type, usually a target type
     * @param restTypes  the remaining target argument types
     * @return a new Binder
     */
    public Binder castVirtual(Class returnType, Class firstType, Class... restTypes) {
        return new Binder(this, new Cast(type()), MethodType.methodType(returnType, firstType, restTypes));
    }
View Full Code Here

TOP

Related Classes of com.headius.invokebinder.transform.Cast

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.