public class InstalledCode extends Object
Modifier and Type | Field and Description |
---|---|
private long |
address
Raw address of this code blob.
|
protected String |
name |
private long |
version
Counts how often the address field was reassigned.
|
Constructor and Description |
---|
InstalledCode(String name) |
Modifier and Type | Method and Description |
---|---|
Object |
executeVarargs(Object... args)
Executes the installed code with a variable number of arguments.
|
long |
getAddress() |
byte[] |
getCode()
Returns a copy of this installed code if it is valid, null otherwise.
|
long |
getCodeSize()
Returns the number of instruction bytes for this code.
|
String |
getName()
Returns the name of this code blob.
|
long |
getStart()
Returns the start address of this installed code if it is valid, 0
otherwise.
|
long |
getVersion() |
void |
invalidate()
Invalidates this installed code such that any subsequent invocation will throw an
InvalidInstalledCodeException . |
boolean |
isValid() |
void |
setAddress(long address) |
private long address
private long version
public InstalledCode(String name)
public final void setAddress(long address)
public final long getAddress()
public final long getVersion()
public long getStart()
public long getCodeSize()
public byte[] getCode()
public boolean isValid()
public void invalidate()
InvalidInstalledCodeException
.public Object executeVarargs(Object... args) throws InvalidInstalledCodeException
args
- the array of object argumentsInvalidInstalledCodeException