package sun.jvm.hotspot.debugger.bsd;
import sun.jvm.hotspot.debugger.*;
class BsdOopHandle extends BsdAddress implements OopHandle {
BsdOopHandle(BsdDebugger debugger, long addr) {
super(debugger, addr);
}
public boolean equals(Object arg) {
if (arg == null) {
return false;
}
if (!(arg instanceof BsdOopHandle)) {
return false;
}
return (addr == ((BsdAddress) arg).addr);
}
public Address addOffsetTo (long offset) throws UnsupportedOperationException {
throw new UnsupportedOperationException("addOffsetTo not applicable to OopHandles (interior object pointers not allowed)");
}
public Address andWithMask(long mask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("andWithMask not applicable to OopHandles (i.e., anything but C addresses)");
}
public Address orWithMask(long mask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("orWithMask not applicable to OopHandles (i.e., anything but C addresses)");
}
public Address xorWithMask(long mask) throws UnsupportedOperationException {
throw new UnsupportedOperationException("xorWithMask not applicable to OopHandles (i.e., anything but C addresses)");
}
}