Class Symbol
java.lang.Object
es.ucm.maude.bindings.ModuleItem
es.ucm.maude.bindings.Symbol
-
Method Summary
Modifier and TypeMethodDescriptionint
arity()
Get the number of arguments.void
delete()
domainKind
(int argNr) Get the kind for the given argument.
boolean
Check whether two symbols are the same.Get the format attribute of the symbol.
Get the frozen attribute of the symbol.
Get the identity element for this symbol (if any).Get the id-hooks of the special operator (or an empty sequence otherwise).
Get the line number information for this item as formatted by Maude.
The format of the string is usuallyfilename, line line (module)
where the secondline
is the integral line number, andmodule
is
the module type and name where this item was originally defined.getMetadata
(int index) Get the metadata attribute of the given declaration of this symbol.
Get the declarations of the symbol.int
getPrec()
Get the syntactic precedence of the symbol.Get the range sort of the symbol.Get the reduction strategy of the symbol.boolean
hasAttr
(int attr) Whether the symbol has the given attribute.
long
hash()
Get the hash value of the symbol.makeTerm
(TermVector args) Build a term with this symbol and the given terms as arguments.toString()
Methods inherited from class es.ucm.maude.bindings.ModuleItem
getModule
-
Method Details
-
delete
public void delete()- Overrides:
delete
in classModuleItem
-
arity
public int arity()Get the number of arguments. -
domainKind
Get the kind for the given argument.
- Parameters:
argNr
- The argument index.
-
getRangeSort
Get the range sort of the symbol. -
hash
public long hash()Get the hash value of the symbol. -
equal
Check whether two symbols are the same. -
getOpDeclarations
Get the declarations of the symbol. -
makeTerm
Build a term with this symbol and the given terms as arguments. -
getMetadata
Get the metadata attribute of the given declaration of this symbol.
- Parameters:
index
- Index of the operator declaration.
-
hasAttr
public boolean hasAttr(int attr) Whether the symbol has the given attribute.
- Parameters:
attr
- One of theOP_*
constants for operator attributes.
-
getIdentity
Get the identity element for this symbol (if any). -
getStrategy
Get the reduction strategy of the symbol. -
getFrozen
Get the frozen attribute of the symbol.
- Returns:
- The sequence of indices in the frozen attribute,
where arguments are numbered from 0 instead of 1.
-
getFormat
Get the format attribute of the symbol.
- Returns:
- The sequence of instruction words of the format
specification, each of them a string.
-
getPrec
public int getPrec()Get the syntactic precedence of the symbol. -
getIdHooks
Get the id-hooks of the special operator (or an empty sequence otherwise).
- Returns:
- A sequence of string sequences representing each an id-hook of
the operator with its name followed by its arguments.
-
toString
-
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 secondline
is the integral line number, andmodule
is
the module type and name where this item was originally defined. The
filename
may be an actual quoted filename or some special name
between angle brackets.
-