Package dev.roanh.gmark.lang.rpq
Class DisjunctionRPQ
java.lang.Object
dev.roanh.gmark.lang.rpq.DisjunctionRPQ
- All Implemented Interfaces:
QueryFragment
,QueryLanguageSyntax
,RPQ
,OutputFormal
,OutputSQL
,OutputXML
RPQ modelling the disjunction between RPQs.
-
Field Summary
Fields inherited from interface dev.roanh.gmark.lang.QueryLanguageSyntax
CHAR_DISJUNCTION, CHAR_INTERSECTION, CHAR_INVERSE, CHAR_JOIN, CHAR_KLEENE
-
Constructor Summary
ConstructorDescriptionDisjunctionRPQ
(List<RPQ> rpq) Constructs a new disjunction RPQ with the given RPQs as the components. -
Method Summary
Modifier and TypeMethodDescriptionThe top level operation represented by this query fragment.Converts this query fragment to an equivalent abstract syntax tree.Converts this object to its formal logic form.toString()
void
writeSQL
(IndentWriter writer) Writes the SQL representation of this object to the given writer.void
writeXML
(IndentWriter writer) Writes this object as XML to the given writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.roanh.gmark.lang.rpq.RPQ
getQueryLanguage
-
Field Details
-
rpq
The RPQs of the disjunction.
-
-
Constructor Details
-
DisjunctionRPQ
Constructs a new disjunction RPQ with the given RPQs as the components.- Parameters:
rpq
- The RPQs for the disjunction.- Throws:
IllegalArgumentException
- When less than two RPQs are provided.
-
-
Method Details
-
toFormalSyntax
Description copied from interface:OutputFormal
Converts this object to its formal logic form.- Specified by:
toFormalSyntax
in interfaceOutputFormal
- Returns:
- The formal representation of this object.
-
toString
-
writeSQL
Description copied from interface:OutputSQL
Writes the SQL representation of this object to the given writer. -
writeXML
Description copied from interface:OutputXML
Writes this object as XML to the given writer. -
getOperationType
Description copied from interface:QueryFragment
The top level operation represented by this query fragment.- Specified by:
getOperationType
in interfaceQueryFragment
- Returns:
- The top level operation for this query fragment.
-
toAbstractSyntaxTree
Description copied from interface:QueryFragment
Converts this query fragment to an equivalent abstract syntax tree.- Specified by:
toAbstractSyntaxTree
in interfaceQueryFragment
- Returns:
- The constructed Abstract Syntax Tree (AST).
-