Examples of InstanceOfExpression


Examples of com.dooapp.gaedo.finders.expressions.InstanceOfExpression

   * rather a "classes contains type".
   * @param type type we want returned objects to be instances of. it is of course a subtype of this informed type.
   * @return an
   */
  public QueryExpression instanceOf(Class<? extends InformedType> type) {
    return new InstanceOfExpression(source, getFieldPath(), type);
  }
View Full Code Here

Examples of com.dooapp.gaedo.finders.expressions.InstanceOfExpression

    return new EqualsExpression(null, new LinkedList<Property>(), value);
  }

  @Override
  public QueryExpression instanceOf(Class<? extends DataType> type) {
    return new InstanceOfExpression(null, new LinkedList<Property>(), type);
  }
View Full Code Here

Examples of com.dooapp.gaedo.finders.expressions.InstanceOfExpression

      return new EqualsExpression(field, getFieldPath(), value);
    }

    @Override
    public QueryExpression instanceOf(Class<? extends DataType> type) {
      return new InstanceOfExpression(field, getFieldPath(), type);
    }
View Full Code Here

Examples of com.dragome.compiler.ast.InstanceofExpression

      case Const.INSTANCEOF:
      {

        int index= bytes.readUnsignedShort();
        InstanceofExpression ex= new InstanceofExpression();
        Expression objectref= stack.pop();
        ex.setLeftOperand(objectref);
        ConstantClass c= (ConstantClass) constantPool.getConstant(index);
        ObjectType type= new ObjectType(c.getBytes(constantPool).replace('/', '.'));
        ex.setRightOperand(type);
        ex.widen(objectref);
        instruction= ex;
        break;
      }

      case Const.ACONST_NULL:
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression

  //optimize the push/pop

  //by construction, no base type may be used in getTypeReference
  Expression exp;
  this.expressionStack[this.expressionPtr] = exp =
    new InstanceOfExpression(
      this.expressionStack[this.expressionPtr],
      getTypeReference(this.intStack[this.intPtr--]));
  if (exp.sourceEnd == 0) {
    //array on base type....
    exp.sourceEnd = this.scanner.startPosition - 1;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression

  //by construction, no base type may be used in getTypeReference
  TypeReference reference = getTypeReference(this.intStack[this.intPtr--]);
  pushOnExpressionStack(getUnspecifiedReferenceOptimized());
  Expression exp;
  this.expressionStack[this.expressionPtr] = exp =
    new InstanceOfExpression(
      this.expressionStack[this.expressionPtr],
      reference);
  if (exp.sourceEnd == 0) {
    //array on base type....
    exp.sourceEnd = this.scanner.startPosition - 1;
View Full Code Here

Examples of org.jreversepro.ast.expression.InstanceOfExpression

      Expression reference = evalMachine.pop();
      int offset = ins.getArgUnsignedShort();

      // Class Type found here
      String classType = pool.getClassName(offset);
      InstanceOfExpression expr = new InstanceOfExpression(reference, classType);

      evalMachine.push(expr);
      break;
    }
    }
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.