public class SingleRule extends Object implements Rule
Constructor and Description |
---|
SingleRule(String lhsType,
String rhsName,
String rhsType)
A utility constructor which simply takes strings
with single words separated by whitespace, separates
these strings into arrays, and calls the standard
array constructor.
|
Modifier and Type | Method and Description |
---|---|
Type |
getLHSType()
Return the LHS type of the rule.
|
String[] |
getRHSNames()
Return the RHS names of the rule.
|
Type[] |
getRHSTypes()
Return the RHS types of the rule.
|
CompositeElement |
match(CompositeElement[] rhs,
Scene db)
Match the given scene elements and return a resulting
element, or return null if there is no match.
|
public Type getLHSType()
getLHSType
in interface Rule
public Type[] getRHSTypes()
getRHSTypes
in interface Rule
public String[] getRHSNames()
getRHSNames
in interface Rule
public CompositeElement match(CompositeElement[] rhs, Scene db)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.