Constructor and Description |
---|
Guard(java.util.Collection<ru.ispras.fortress.expression.Node> list)
Constructs object from the specified list of Boolean
Node objects. |
Guard(ru.ispras.fortress.expression.Node node)
Constructs object with the specified boolean predicate.
|
Modifier and Type | Method and Description |
---|---|
Guard |
deepCopy()
Returns a deep copy of the object.
|
boolean |
equals(java.lang.Object object) |
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getDefines()
Returns a set of defined variables.
|
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getUses()
Returns a set of used variables.
|
int |
hashCode() |
ru.ispras.fortress.expression.Node |
toNode()
Convert guard expression into
Node expression. |
java.lang.String |
toString() |
addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo
public Guard(ru.ispras.fortress.expression.Node node)
node
- boolean guard predicatejava.lang.IllegalArgumentException
- when argument is null
.RetrascopeRuntimeException
- when argument is not of DataType.BOOLEAN
type.public Guard(java.util.Collection<ru.ispras.fortress.expression.Node> list)
Node
objects.list
- list of guard predicatesjava.lang.IllegalArgumentException
- when either argument is null
RetrascopeRuntimeException
- when at least one collection element
is not of DataType.BOOLEAN
type.public Guard deepCopy()
public ru.ispras.fortress.expression.Node toNode()
Node
expression.Node
expression.public java.util.Set<ru.ispras.fortress.expression.NodeVariable> getUses()
UseDef
public java.util.Set<ru.ispras.fortress.expression.NodeVariable> getDefines()
UseDef
getDefines
in interface UseDef
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object