public class QueryElement extends ConditionalElement implements Externalizable
| Constructor and Description |
|---|
QueryElement() |
QueryElement(Pattern resultPattern,
String queryName,
Object[] argTemplate,
Declaration[] requiredDeclarations,
int[] declIndexes,
int[] variableIndexes,
boolean openQuery,
boolean abductive) |
| Modifier and Type | Method and Description |
|---|---|
QueryElement |
clone()
Returns a clone from itself
|
boolean |
equals(Object obj) |
Object[] |
getArgTemplate() |
int[] |
getDeclIndexes() |
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are
visible inside this conditional element
|
List<? extends RuleConditionElement> |
getNestedElements()
Returs a list of RuleConditionElement's that are nested
inside the current element
|
Map<String,Declaration> |
getOuterDeclarations()
Returns a Map of declarations that are visible
outside this conditional element.
|
String |
getQueryName() |
Declaration[] |
getRequiredDeclarations() |
Pattern |
getResultPattern() |
int[] |
getVariableIndexes() |
int |
hashCode() |
boolean |
isAbductive() |
boolean |
isOpenQuery() |
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits
a pattern visibility scope.
|
void |
readExternal(ObjectInput in) |
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and
returns the Declaration object for the declaration.
|
void |
setVariableIndexes(int[] varIndexes) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public QueryElement()
public QueryElement(Pattern resultPattern, String queryName, Object[] argTemplate, Declaration[] requiredDeclarations, int[] declIndexes, int[] variableIndexes, boolean openQuery, boolean abductive)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic String getQueryName()
public Object[] getArgTemplate()
public int[] getDeclIndexes()
public void setVariableIndexes(int[] varIndexes)
public int[] getVariableIndexes()
public Map<String,Declaration> getInnerDeclarations()
RuleConditionElementgetInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElementgetOuterDeclarations in interface RuleConditionElementpublic List<? extends RuleConditionElement> getNestedElements()
RuleConditionElementgetNestedElements in interface RuleConditionElementpublic Pattern getResultPattern()
public boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementpublic Declaration[] getRequiredDeclarations()
public boolean isOpenQuery()
public boolean isAbductive()
public Declaration resolveDeclaration(String identifier)
RuleConditionElementresolveDeclaration in interface RuleConditionElementpublic QueryElement clone()
RuleConditionElementclone in interface RuleConditionElementclone in class ConditionalElementCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.