public class Guard extends MetaInfo implements ru.ispras.castle.ast.UseDef
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() |
java.util.Set<ru.ispras.fortress.expression.NodeVariable> |
getUses() |
int |
hashCode() |
ru.ispras.fortress.expression.Node |
toNode()
Convert guard expression into
Node expression. |
java.lang.String |
toString() |
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getAllMetaInfo, getMetaInfo, getMetaInfo, getStringMetaInfo, getStringMetaInfo, hasMetaInfo, hasMetaInfo
public Guard(ru.ispras.fortress.expression.Node node)
node
- boolean guard predicatejava.lang.IllegalArgumentException
- when argument is null
.RetrascopeException
- 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
RetrascopeException
- 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()
getUses
in interface ru.ispras.castle.ast.UseDef
public java.util.Set<ru.ispras.fortress.expression.NodeVariable> getDefines()
getDefines
in interface ru.ispras.castle.ast.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