public class MatchRuleRegistry extends Object
| Constructor and Description |
|---|
MatchRuleRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static org.graalvm.collections.EconomicMap<Class<? extends Node>,List<MatchStatement>> |
createRules(Class<? extends NodeMatchRules> theClass) |
static Position[] |
findPositions(NodeClass<? extends Node> nodeClass,
String[] names)
Convert a list of field names into
Position objects that
can be used to read them during a match. |
static org.graalvm.collections.EconomicMap<Class<? extends Node>,List<MatchStatement>> |
lookup(Class<? extends NodeMatchRules> theClass,
OptionValues options,
DebugContext debug)
Collect all the
MatchStatements defined by the superclass chain of theClass. |
public static Position[] findPositions(NodeClass<? extends Node> nodeClass, String[] names)
Position objects that
can be used to read them during a match. The names should already have been confirmed to
exist in the type.nodeClass - names - public static org.graalvm.collections.EconomicMap<Class<? extends Node>,List<MatchStatement>> lookup(Class<? extends NodeMatchRules> theClass, OptionValues options, DebugContext debug)
MatchStatements defined by the superclass chain of theClass.theClass - options - MatchStatements applicable to theClass.public static org.graalvm.collections.EconomicMap<Class<? extends Node>,List<MatchStatement>> createRules(Class<? extends NodeMatchRules> theClass)