All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.wala.cast.ir.ssa.AstPropertyRead Maven / Gradle / Ivy

The newest version!
package com.ibm.wala.cast.ir.ssa;

import com.ibm.wala.ssa.SSAInstruction;
import com.ibm.wala.ssa.SSAInstructionFactory;

public abstract class AstPropertyRead extends AbstractReflectiveGet {

  public AstPropertyRead(int iindex, int result, int objectRef, int memberRef) {
    super(iindex, result, objectRef, memberRef);
  }

  @Override
  public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) {
    return ((AstInstructionFactory) insts)
        .PropertyRead(
            iIndex(),
            defs == null ? getDef() : defs[0],
            uses == null ? getObjectRef() : uses[0],
            uses == null ? getMemberRef() : uses[1]);
  }

  @Override
  public boolean isPEI() {
    return true;
  }

  /**
   * /* (non-Javadoc)
   *
   * @see com.ibm.wala.ssa.SSAInstruction#visit(com.ibm.wala.ssa.SSAInstruction.IVisitor)
   */
  @Override
  public void visit(IVisitor v) {
    assert v instanceof AstInstructionVisitor;
    ((AstInstructionVisitor) v).visitPropertyRead(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy