|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.instrumentation.AdditionalOpcodeInformation
public final class AdditionalOpcodeInformation
Additional information about opcodes gathered from their parameters. One class instance of this exists for a counted method, meaning that all occurrences of array constructions are in this one instance.
Field Summary | |
---|---|
static int |
NO_INFORMATION_INT
This integer signals that the entry with this value holds no information. |
static java.lang.String |
NO_INFORMATION_STRING
This string signals that the entry with this value holds no information. |
static int[] |
OPCODES_STORING_ADDITIONAL_INFORMATION
This is a list of opcodes for which a place in the additional information arrays is reserved. |
Constructor Summary | |
---|---|
AdditionalOpcodeInformation()
Construct empty AdditionalOpcodeInformation. |
|
AdditionalOpcodeInformation(java.lang.String[] foundMethodInvStrings,
int[] intInformation,
java.lang.String[] stringInformation)
Construct AdditionalOpcodeInformation with the given parameters. |
Method Summary | |
---|---|
void |
addAdditionalInformation(int i,
java.lang.String s)
Add additional information entry. |
int |
getIndexOfAdditionInformation(int integer,
java.lang.String s)
Check whether the specified information tuple (integer, s) exists and return its index if it does. |
int[] |
getIntInformation()
This is always connected to the string information with the same index. |
java.util.List<java.lang.String> |
getMethodInvokations()
Get the list containing all method signatures that were called in the visited method. |
java.util.List<java.lang.String> |
getStringInformation()
This is always connected to the int information with the same index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_INFORMATION_INT
public static final java.lang.String NO_INFORMATION_STRING
public static final int[] OPCODES_STORING_ADDITIONAL_INFORMATION
Constructor Detail |
---|
public AdditionalOpcodeInformation()
public AdditionalOpcodeInformation(java.lang.String[] foundMethodInvStrings, int[] intInformation, java.lang.String[] stringInformation)
foundMethodInvStrings
- Method descriptors.intInformation
- Information as integer. Examples: array dimension,
array element type, etc.stringInformation
- Information as integer. Could be type
descriptors for array construction.Method Detail |
---|
public void addAdditionalInformation(int i, java.lang.String s)
i
- Integer information.s
- String information.public int getIndexOfAdditionInformation(int integer, java.lang.String s)
integer
- Integer information.s
- String information.
public int[] getIntInformation()
public java.util.List<java.lang.String> getMethodInvokations()
owner + "." + name + desc
. Signatures are specific to
the object they are invoked on. This means that a certain methods
may be more than once in the array. However, their signatures differ,
as the owner property differs.public java.util.List<java.lang.String> getStringInformation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |