Package org.jreversepro.ast.expression

Examples of org.jreversepro.ast.expression.FieldAccessExpression


      int fieldPtr = pool.getPtr2(offset);

      String fieldName = pool.getFieldName(fieldPtr);
      String fieldType = pool.getFieldType(fieldPtr);

      FieldAccessExpression expr = new InstanceFieldAccessExpression(op1, fieldName,
          fieldType);
      evalMachine.push(expr);
      break;
    }
    case OPCODE_PUTFIELD: {

      Expression rhs = evalMachine.pop();
      Expression accessTarget = evalMachine.pop();

      int offset = ins.getArgUnsignedShort();

      int fieldPtr = pool.getPtr2(offset);
      String fieldName = pool.getFieldName(fieldPtr);
      String fieldType = pool.getFieldType(fieldPtr);

      FieldAccessExpression expr = new InstanceFieldAccessExpression(accessTarget,
          fieldName, fieldType);
      Assignment assign = new Assignment(expr, rhs);
      statements.append(new CompleteLine(ins, assign));
      break;
    }
View Full Code Here


    String classType = pool.getClassName(classPtr);

    String fieldName = pool.getFieldName(fieldPtr);
    String fieldType = pool.getFieldType(fieldPtr);

    FieldAccessExpression expr = new StaticFieldAccessExpression(classType,
        fieldName, fieldType);

    switch (ins.opcode) {
    case OPCODE_GETSTATIC:
      evalMachine.push(expr);
View Full Code Here

TOP

Related Classes of org.jreversepro.ast.expression.FieldAccessExpression

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.