public class MatchStatement extends Object
MatchPattern along with a MatchGenerator that can be evaluated to replace
one or more Nodes with a single Value.| Constructor and Description |
|---|
MatchStatement(String name,
MatchPattern pattern,
MatchGenerator generator,
String[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatMatch(Node root) |
boolean |
generate(NodeLIRBuilder builder,
int index,
Node node,
Block block,
StructuredGraph.ScheduleResult schedule)
Attempt to match the current statement against a Node.
|
String |
getName() |
MatchPattern |
getPattern() |
String |
toString() |
public MatchStatement(String name, MatchPattern pattern, MatchGenerator generator, String[] arguments)
public boolean generate(NodeLIRBuilder builder, int index, Node node, Block block, StructuredGraph.ScheduleResult schedule)
builder - the current builder instance.node - the node to be matchedblock - the current blockschedule - the schedule that's being usedComplexMatchResult to be
evaluated by the NodeLIRBuilder.public MatchPattern getPattern()
public String getName()