Package org.candle.decompiler.intermediate.expression

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


   */
  public void visitNEWARRAY(NEWARRAY instruction) {
    //first, check to see if the next instruction is a DUP.  If so,
    //this is probably a constant array value.
    Expression count = context.getExpressions().pop();
    ArrayCreation nai = null;
   
    if(context.getCurrentInstruction().getNext().getInstruction() instanceof DUP) {
      nai = new NewConstantArrayInstance(context.getCurrentInstruction(), instruction.getType(), count);
    }
    else {
      nai = new ArrayCreation(context.getCurrentInstruction(), instruction.getType(), count);
    }
   
    context.getExpressions().push(nai)
   
  }
View Full Code Here


   */
  public void visitANEWARRAY(ANEWARRAY instruction) {
    Type type = instruction.getType(context.getMethodGen().getConstantPool());
    Expression count = context.getExpressions().pop();

    ArrayCreation nai = null;
   
    if(context.getCurrentInstruction().getNext().getInstruction() instanceof DUP) {
      nai = new NewConstantArrayInstance(context.getCurrentInstruction(), type, count);
    }
    else {
      nai = new ArrayCreation(context.getCurrentInstruction(), type, count);
    }
   
    context.getExpressions().push(nai);
  }
View Full Code Here

   
    for(int i=0; i<provided; i++) {
      counts.addFirst(context.getExpressions().pop());
    }
   
    ArrayCreation nai = new ArrayCreation(context.getCurrentInstruction(), type, counts);
    context.getExpressions().push(nai);
  }
View Full Code Here

TOP

Related Classes of org.candle.decompiler.intermediate.expression.ArrayCreation

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.