|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdpvis.datastructures.impl.RuleImpl
public class RuleImpl
Constructor Summary | |
---|---|
RuleImpl(Rule rule)
|
|
RuleImpl(Term lhs,
Term rhs)
|
|
RuleImpl(Term lhs,
Term rhs,
java.util.List<Rule> conditions)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
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. |
int |
hashCode()
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuleImpl(Term lhs, Term rhs)
public RuleImpl(Term lhs, Term rhs, java.util.List<Rule> conditions)
public RuleImpl(Rule rule)
Method Detail |
---|
public void markVariables(java.util.List<java.lang.String> vars)
Rule
markVariables
in interface Rule
vars
- The functions that shall be interpreted as variables.public void renameVariables(java.lang.String var)
Rule
renameVariables
in interface Rule
var
- The variable prefix for the new variable names.public Term getLhs()
Rule
getLhs
in interface Rule
public void setLhs(Term lhs)
Rule
setLhs
in interface Rule
lhs
- The new left-hand side of the rule.public Term getRhs()
Rule
getRhs
in interface Rule
public void setRhs(Term rhs)
Rule
setRhs
in interface Rule
rhs
- The new right-hand side of the rule.public java.util.List<Rule> getConditions()
Rule
getConditions
in interface Rule
public void setConditions(java.util.List<Rule> conditions)
Rule
setConditions
in interface Rule
conditions
- The new conditions of the rule.public java.lang.String toString()
toString
in class java.lang.Object
public boolean isConditional()
Rule
isConditional
in interface Rule
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Set<java.lang.String> getFunctions()
Rule
getFunctions
in interface Rule
public void filter(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> filtering)
Rule
filter
in interface Rule
filtering
- The filtering given by a mapping from functions to lists of argument positions.public java.util.Set<Pair<java.lang.String,java.lang.Integer>> getAllFunctionSymbolsWithArity()
Rule
getAllFunctionSymbolsWithArity
in interface Rule
public void removeContextSensitivityFlags()
Rule
removeContextSensitivityFlags
in interface Rule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |