public class InsnRange
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
end
End of the range (line number)
|
int |
marker
Range marker (index of insn)
|
int |
start
Start of the range (line number)
|
| Constructor and Description |
|---|
InsnRange(int start,
int end,
int marker)
Create a range with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Deque<org.objectweb.asm.tree.AbstractInsnNode> |
apply(org.objectweb.asm.tree.InsnList insns,
boolean inclusive)
Apply this range to the specified insn list
|
boolean |
contains(int value)
Returns true if the supplied value is between or equal to start and
end
|
boolean |
excludes(int value)
Returns true if the supplied value is outside the range
|
boolean |
isValid()
Range is valid if both start and end are nonzero and end is after or
at start
|
java.lang.String |
toString() |
public final int start
public final int end
public final int marker
public InsnRange(int start,
int end,
int marker)
start - Start of the rangeend - End of the rangemarker - Arbitrary marker valuepublic boolean isValid()
public boolean contains(int value)
value - true if the range contains valuepublic boolean excludes(int value)
value - true if the range does not contain valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Deque<org.objectweb.asm.tree.AbstractInsnNode> apply(org.objectweb.asm.tree.InsnList insns,
boolean inclusive)
insns - insn list to filterinclusive - whether to include or exclude instructions