Class Rule
java.lang.Object
es.ucm.maude.bindings.ModuleItem
es.ucm.maude.bindings.Rule
A Maude rewrite rule.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanCheck whether two rule are the same.Get the condition of the rule.getLabel()Get the label attribute.getLhs()Get the left-hand-side term.Get the line number information for this item as formatted by Maude.
The format of the string is usuallyfilename, line line (module)
where the secondlineis the integral line number, andmoduleis
the module type and name where this item was originally defined.Get the free textmetadataattribute of this statement.getRhs()Get the right-hand-side term.booleanWhether the rule has a condition.longhash()Get the hash value of the rule.booleanWhether the rule has thenarrowingattribute.booleanWhether the rule has thenonexecattribute.toString()Methods inherited from class ModuleItem
getModule
-
Method Details
-
delete
public void delete()- Overrides:
deletein classModuleItem
-
getLhs
Get the left-hand-side term. -
getRhs
Get the right-hand-side term. -
getLabel
Get the label attribute. -
isNarrowing
public boolean isNarrowing()Whether the rule has thenarrowingattribute. -
isNonexec
public boolean isNonexec()Whether the rule has thenonexecattribute. -
hasCondition
public boolean hasCondition()Whether the rule has a condition. -
getCondition
Get the condition of the rule. -
toString
-
getMetadata
Get the free textmetadataattribute of this statement. -
getLineNumber
Get the line number information for this item as formatted by Maude.
The format of the string is usuallyfilename, line line (module)
where the secondlineis the integral line number, andmoduleis
the module type and name where this item was originally defined. The
filenamemay be an actual quoted filename or some special name
between angle brackets. -
hash
public long hash()Get the hash value of the rule. -
equal
Check whether two rule are the same.
-