Examples of InstanceOf


Examples of org.candle.decompiler.intermediate.expression.InstanceOf

    String type = instruction.getLoadClassType(cpg).getClassName();

    //get the left, create the right
    Expression left = context.getExpressions().pop();
    Expression right = new Resolved(context.getCurrentInstruction(), Type.BOOLEAN, type);
    InstanceOf instanceOf = new InstanceOf(context.getCurrentInstruction(), left, right);
   
    context.getExpressions().push(instanceOf);
  }
View Full Code Here

Examples of org.easymock.internal.matchers.InstanceOf

        }
        else {
            argClass = arg.getClass();
        }
       
        reportMatcher(new InstanceOf(argClass));
       
        return null;
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

     * @param clazz
     *            the class of the accepted type.
     * @return <code>null</code>.
     */
    public static <T> T isA(Class<T> clazz) {
        return reportMatcher(new InstanceOf(clazz)).<T>returnNull();
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

     * @param clazz
     *            the class of the accepted type.
     * @return <code>null</code>.
     */
    public static <T> T isA(Class<T> clazz) {
        return reportMatcher(new InstanceOf(clazz)).<T>returnNull();
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

     * @param clazz
     *            the class of the accepted type.
     * @return <code>null</code>.
     */
    public static <T> T isA(Class<T> clazz) {
        return reportMatcher(new InstanceOf(clazz)).<T>returnNull();
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

     * @param clazz
     *            the class of the accepted type.
     * @return <code>null</code>.
     */
    public static <T> T isA(Class<T> clazz) {
        return reportMatcher(new InstanceOf(clazz)).<T>returnNull();
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

     * @param clazz
     *            the class of the accepted type.
     * @return <code>null</code>.
     */
    public static <T> T isA(Class<T> clazz) {
        return reportMatcher(new InstanceOf(clazz)).<T>returnNull();
    }
View Full Code Here

Examples of org.mockito.internal.matchers.InstanceOf

    }

    // Object

    public static Matcher<Object> instanceOf(Class clazz) {
        return new InstanceOf(clazz);
    }
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaExpression.InstanceOf

    /* (non-Javadoc)
     * @see org.openquark.cal.internal.runtime.lecc.JavaModelVisitor#visitInstanceOfExpression(org.openquark.cal.internal.runtime.lecc.JavaExpression.InstanceOf, java.lang.Object)
     */
    public JavaExpression visitInstanceOfExpression(InstanceOf instanceOf, T arg) {
        return new InstanceOf (
                (JavaExpression)instanceOf.getJavaExpression().accept(this, arg),
                instanceOf.getReferenceType());
    }
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaExpression.InstanceOf

                        String localName = fieldName+"$";
                        LocalVariable localVariable = new LocalVariable(localName, fieldType);
                        LocalVariableDeclaration localDeclaration = new LocalVariableDeclaration(localVariable);
                        javaMethod.addStatement(localDeclaration);
                        Assignment localAssignment = new Assignment(localVariable, field);
                        InstanceOf checkType = new InstanceOf(localAssignment, JavaTypeNames.RTRESULT_FUNCTION);
                        MethodInvocation getValue = new MethodInvocation.Instance(localVariable, "getValue", JavaTypeNames.RTVALUE, MethodInvocation.InvocationType.VIRTUAL);
                        Assignment fieldAssignment = new Assignment(field, getValue);
                        ReturnStatement returnNewVal = new ReturnStatement(fieldAssignment);
                        IfThenElseStatement ifThen = new IfThenElseStatement(checkType, returnNewVal);
                        javaMethod.addStatement(ifThen);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.