public class ArrayInitializationMatcher
extends java.lang.Object
Constructor and Description |
---|
ArrayInitializationMatcher()
Creates a new ArrayInitializationMatcher.
|
ArrayInitializationMatcher(PartialEvaluator partialEvaluator)
Creates a new ArrayInitializationMatcher that will use the given partial evaluator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
array()
Returns the recent static array initialization.
|
int |
arrayInitializationEnd()
Returns the last offset of the recent static array initialization.
|
int |
arrayInitializationStart()
Returns the first offset of the recent static array initialization, i.e.
|
boolean |
matchesArrayInitialization(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int newArrayOffset,
SimpleInstruction newArrayInstruction)
Returns whether the code fragment starting at the specified newarray instruction is followed by
a static array initialization.
|
public ArrayInitializationMatcher()
public ArrayInitializationMatcher(PartialEvaluator partialEvaluator)
partialEvaluator
- the evaluator to be used for the analysis.public boolean matchesArrayInitialization(Clazz clazz, Method method, CodeAttribute codeAttribute, int newArrayOffset, SimpleInstruction newArrayInstruction)
clazz
- the class.method
- the method.codeAttribute
- the code attribute.newArrayOffset
- the offset of the newarray instruction.newArrayInstruction
- the newarray instruction.public int arrayInitializationStart()
public int arrayInitializationEnd()
public java.lang.Object array()