| Constructor and Description |
|---|
ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body) |
ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body,
boolean addInFront) |
ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body,
java.util.List<ProvaVariable> variables) |
ProvaRuleImpl(ProvaLiteral[] body) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBodyLiteral(ProvaLiteral literal) |
void |
addMetadata(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> m) |
boolean |
advance()
Advance the goal to the next query
|
ProvaRule |
cloneRule() |
ProvaRule |
cloneRule(boolean cloneVariables) |
java.util.List<ProvaVariable> |
cloneVariables() |
void |
collectVariables() |
void |
collectVariables(int offset) |
void |
computeSourceCode() |
static ProvaRule |
createVirtualRule(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body) |
long |
getAbsRuleId() |
ProvaLiteral[] |
getBody() |
java.lang.Object |
getFirstArg() |
ProvaLiteral[] |
getGuardedBody(ProvaLiteral sourceLiteral)
Get body with a prefix containing guard literals if sourceLiteral is ProvaGuardedLiteralImpl
|
ProvaLiteral |
getHead() |
int |
getLine() |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getMetadata() |
java.util.List<java.lang.Object> |
getMetadata(java.lang.String property) |
int |
getOffset() |
long |
getRuleId() |
java.lang.String |
getSourceCode() |
ProvaLiteral |
getTop() |
java.util.List<ProvaVariable> |
getVariables() |
boolean |
isCut() |
boolean |
isRemoved() |
void |
removeAt(int index) |
void |
replaceTopBodyLiteral(java.util.List<ProvaLiteral> literals) |
void |
setBody(ProvaLiteral[] body) |
void |
setHead(ProvaLiteral head) |
void |
setLine(int line) |
void |
setMetadata(java.lang.String property,
java.util.List<java.lang.Object> value) |
void |
setRemoved() |
void |
setRuleId(long ruleId) |
void |
setSrc(java.util.List<java.lang.Object> value) |
void |
setVariables(java.util.List<ProvaVariable> variables) |
void |
substituteVariables(ProvaVariablePtr[] varsMap) |
java.lang.String |
toString() |
public ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body)
public ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body,
boolean addInFront)
public ProvaRuleImpl(ProvaLiteral[] body)
public ProvaRuleImpl(long ruleId,
ProvaLiteral head,
ProvaLiteral[] body,
java.util.List<ProvaVariable> variables)
public static ProvaRule createVirtualRule(long ruleId, ProvaLiteral head, ProvaLiteral[] body)
public void collectVariables()
collectVariables in interface ProvaRulepublic void collectVariables(int offset)
collectVariables in interface ProvaRulepublic void substituteVariables(ProvaVariablePtr[] varsMap)
substituteVariables in interface ProvaRulepublic void setVariables(java.util.List<ProvaVariable> variables)
setVariables in interface ProvaRulepublic java.util.List<ProvaVariable> getVariables()
getVariables in interface ProvaRulepublic void setHead(ProvaLiteral head)
public ProvaLiteral getHead()
public void setBody(ProvaLiteral[] body)
public ProvaLiteral[] getBody()
public ProvaLiteral[] getGuardedBody(ProvaLiteral sourceLiteral)
getGuardedBody in interface ProvaRulepublic long getAbsRuleId()
getAbsRuleId in interface ProvaRulepublic ProvaRule cloneRule(boolean cloneVariables)
public java.util.List<ProvaVariable> cloneVariables()
cloneVariables in interface ProvaRulepublic boolean advance()
public ProvaLiteral getTop()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addBodyLiteral(ProvaLiteral literal)
addBodyLiteral in interface ProvaRulepublic void replaceTopBodyLiteral(java.util.List<ProvaLiteral> literals)
replaceTopBodyLiteral in interface ProvaRulepublic java.lang.Object getFirstArg()
getFirstArg in interface ProvaRulepublic void setRemoved()
setRemoved in interface ProvaRulepublic java.lang.String getSourceCode()
getSourceCode in interface ProvaRulepublic void computeSourceCode()
computeSourceCode in interface ProvaRulepublic void setMetadata(java.lang.String property,
java.util.List<java.lang.Object> value)
setMetadata in interface ProvaRulepublic void setSrc(java.util.List<java.lang.Object> value)
public java.util.List<java.lang.Object> getMetadata(java.lang.String property)
getMetadata in interface ProvaRulepublic void addMetadata(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> m)
addMetadata in interface ProvaRulepublic java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getMetadata()
getMetadata in interface ProvaRuleCopyright © 2019. All Rights Reserved.