|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
Class modelling a term rewrite rule.
Method Summary | |
---|---|
void |
filter(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> filtering)
Applies an argument filtering to the rule. |
java.util.Set<Pair<java.lang.String,java.lang.Integer>> |
getAllFunctionSymbolsWithArity()
Gets the list of function symbols of the rule together with the corresponding arities. |
java.util.List<Rule> |
getConditions()
Gets the conditions of the rule. |
java.util.Set<java.lang.String> |
getFunctions()
Gets all function symbols that occur in the rule (Including conditions). |
Term |
getLhs()
Gets the left-hand side of the rule. |
Term |
getRhs()
Gets the right-hand side of the rule. |
boolean |
isConditional()
Computes whether the rule is a conditional one. |
void |
markVariables(java.util.List<java.lang.String> vars)
Marks the variables in the rule (see also Term.markVariables()). |
void |
removeContextSensitivityFlags()
Removes all forbidden flags from the rules of this Rule. |
void |
renameVariables(java.lang.String var)
Renames all variables (including those in conditions) of this rule. |
void |
setConditions(java.util.List<Rule> conditions)
Sets the conditions of the rule. |
void |
setLhs(Term lhs)
Sets the left-hand side of the rule. |
void |
setRhs(Term rhs)
Sets the right-hand side of the rule. |
Method Detail |
---|
void markVariables(java.util.List<java.lang.String> vars)
vars
- The functions that shall be interpreted as variables.void renameVariables(java.lang.String var)
var
- The variable prefix for the new variable names.Term getLhs()
void setLhs(Term lhs)
lhs
- The new left-hand side of the rule.Term getRhs()
void setRhs(Term rhs)
rhs
- The new right-hand side of the rule.java.util.List<Rule> getConditions()
void setConditions(java.util.List<Rule> conditions)
conditions
- The new conditions of the rule.boolean isConditional()
java.util.Set<java.lang.String> getFunctions()
void filter(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> filtering)
filtering
- The filtering given by a mapping from functions to lists of argument positions.java.util.Set<Pair<java.lang.String,java.lang.Integer>> getAllFunctionSymbolsWithArity()
void removeContextSensitivityFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |