package fr.lifl.stc.stan.execution.stack; /* * Created on Nov 10, 2004 */ import org.apache.bcel.generic.ReturnaddressType; import org.apache.bcel.generic.Type; /** * @author yann */ public class Address extends JvmType { private int pc; public Address(int pc) { super(); setPc(pc); } public Type getType() { return ReturnaddressType.NO_TARGET; } /** * @see java.lang.Object#clone() */ public Object clone() { Address v = new Address(pc); return v; } /** * @see java.lang.Object#toString() */ public String toString() { return "Addr(" + pc + ")"; } /* (non-Javadoc) * @see fr.lifl.rd2p.jits.tools.ea.execution.stack.Stackable#toString(boolean) */ public String toHTML() { return "
" + toString() + "
"; } /** * @param pc The pc to set. */ private void setPc(int pc) { this.pc = pc; } /** * @return Returns the pc. */ public int getPc() { return pc; } public int typeSize() { return 1; } public int getId() { return -1; } public boolean isArgument() { return false; } }