Examples of InstanceOfExpr


Examples of japa.parser.ast.expr.InstanceOfExpr

        return Boolean.TRUE;
    }

    public Boolean visit(InstanceOfExpr n1, Node arg) {
        InstanceOfExpr n2 = (InstanceOfExpr) arg;

        if (!nodeEquals(n1.getExpr(), n2.getExpr())) {
            return Boolean.FALSE;
        }

        if (!nodeEquals(n1.getType(), n2.getType())) {
            return Boolean.FALSE;
        }

        return Boolean.TRUE;
    }
View Full Code Here

Examples of japa.parser.ast.expr.InstanceOfExpr

        ret = RelationalExpression();
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
            case INSTANCEOF:
                jj_consume_token(INSTANCEOF);
                type = Type();
                ret = new InstanceOfExpr(ret.getBeginLine(), ret.getBeginColumn(), token.endLine, token.endColumn, ret, type);
                break;
            default:
                jj_la1[68] = jj_gen;
                ;
        }
View Full Code Here

Examples of japa.parser.ast.expr.InstanceOfExpr

  public Node visit(InstanceOfExpr _n, Object _arg) {
    Expression expr = cloneNodes(_n.getExpr(), _arg);
    Type type_ = cloneNodes(_n.getType(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    InstanceOfExpr r = new InstanceOfExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        expr, type_
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

Examples of japa.parser.ast.expr.InstanceOfExpr

    return Boolean.TRUE;
  }

  @Override public Boolean visit(final InstanceOfExpr n1, final Node arg) {
    final InstanceOfExpr n2 = (InstanceOfExpr) arg;

    if (!nodeEquals(n1.getExpr(), n2.getExpr())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getType(), n2.getType())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
View Full Code Here

Examples of javassist.compiler.ast.InstanceOfExpr

/*      */   {
/*  788 */     int t = this.lex.lookAhead();
/*  789 */     if (isBuiltinType(t)) {
/*  790 */       this.lex.get();
/*  791 */       int dim = parseArrayDimension();
/*  792 */       return new InstanceOfExpr(t, dim, expr);
/*      */     }
/*      */
/*  795 */     ASTList name = parseClassType(tbl);
/*  796 */     int dim = parseArrayDimension();
/*  797 */     return new InstanceOfExpr(name, dim, expr);
/*      */   }
View Full Code Here

Examples of soot.jimple.InstanceOfExpr

                                }

                                _addAllInterfaces(necessaryClasses, castClass);
                            }
                        } else if (value instanceof InstanceOfExpr) {
                            InstanceOfExpr expr = (InstanceOfExpr) value;
                            Type checkType = expr.getCheckType();

                            if (checkType instanceof RefType) {
                                SootClass checkClass = ((RefType) checkType)
                                        .getSootClass();
View Full Code Here

Examples of soot.jimple.InstanceOfExpr

                } else if (value instanceof InstanceOfExpr) {
                    // If the operand of the expression is
                    // declared to be of a type that implies
                    // the instanceof is true, then replace
                    // with true.
                    InstanceOfExpr expr = (InstanceOfExpr) value;
                    Type checkType = expr.getCheckType();
                    Value op = expr.getOp();
                    Type opType = op.getType();

                    // Skip locals that are unsafe.
                    if (unsafeLocalSet.contains(op)) {
                        continue;
View Full Code Here

Examples of soot.jimple.InstanceOfExpr

                while (boxes.hasNext()) {
                    ValueBox box = (ValueBox) boxes.next();
                    Value value = box.getValue();

                    if (value instanceof InstanceOfExpr) {
                        InstanceOfExpr expr = (InstanceOfExpr) value;
                        Type checkType = expr.getCheckType();

                        if (checkType instanceof RefType) {
                            nodes.add(((RefType) checkType).getSootClass());
                        }
                    }
View Full Code Here

Examples of soot.jimple.InstanceOfExpr

                } else if (value instanceof InstanceOfExpr) {
                    // If the operand of the expression is
                    // declared to be of a type that implies
                    // the instanceof is true, then replace
                    // with true.
                    InstanceOfExpr expr = (InstanceOfExpr) value;
                    Type checkType = expr.getCheckType();
                    Value op = expr.getOp();

                    if (!PtolemyUtilities.isTokenType(op.getType())) {
                        continue;
                    }
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.