public class Tag
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Tag |
bind(Tag value)
This binds this tag to the specified one and returns this tag.
|
static void |
clearKnownTags()
Resets the know tags and the tag numbering.
|
Tag |
deref()
Ths returns the ultimate tag this is bound to; i.e., its
binding's binding's ...
|
static Tag |
getTag(java.lang.String name)
This static method returns the tag uniquely identified with the
given name.
|
int |
hashCode() |
boolean |
isBound()
Returns true iff this tag is bound.
|
boolean |
isFree()
Returns true iff this tag is free - i.e. it does
not belong to any ψ-term (although it may be bound to one
that is not free).
|
boolean |
isShared()
Returns true iff this tag occurs more than once in a ψ-term.
|
boolean |
isUnbound()
Returns true iff this tag is unbound.
|
Tag |
markAsShared()
Mark this tag as shared (i.e., reoccurring at distinct
positions) and returns this tag.
|
java.lang.String |
name()
Returns the name of this tag.
|
static java.lang.String |
newTagName()
Returns a newly generated tag name.
|
Tag |
ref()
This returns the immediate tag this is bound to.
|
Tag |
setAsShared(boolean shared)
Set the shared mark of this tag to the specified boolean value
and returns this tag.
|
Tag |
setName(java.lang.String name)
This gives the specified name to this his tag and returns this
tag.
|
Tag |
setTerm(PsiTerm term)
Set this tag's term to the specified ψ-term, and returns this
tag.
|
PsiTerm |
term()
Returns the ψ-term to which this tag belongs if it is not
free, or null otherwise.
|
java.lang.String |
toString()
Return a string value for this tag, which is its name.
|
public static java.lang.String newTagName()
public static void clearKnownTags()
public static Tag getTag(java.lang.String name)
public Tag ref()
public Tag deref()
public Tag bind(Tag value)
public boolean isBound()
public boolean isUnbound()
public boolean isShared()
public Tag setAsShared(boolean shared)
public Tag markAsShared()
public PsiTerm term()
public Tag setTerm(PsiTerm term)
public boolean isFree()
public java.lang.String name()
public Tag setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object