Packages

  • package root
    Definition Classes
    root
  • package eu
    Definition Classes
    root
  • package cdevreeze
    Definition Classes
    eu
  • package xpathparser
    Definition Classes
    cdevreeze
  • package queryapi

    Query API, as offered by the AST classes.

    Query API, as offered by the AST classes. It is inspired by the yaidom project.

    The query API methods may be somewhat verbose, but that is intentional. First of all, there are multiple different "axes" that can be used in queries, such as child elements, descendant elements or descendant-or-self elements (if we consider only forward axes). Second, when querying for elements of specific types, there is something to be said for having normal parameters for those types, instead of (more hidden) type parameters.

    Definition Classes
    xpathparser
  • ElemApi
  • ElemLike

trait ElemApi[E <: ElemApi[E]] extends AnyRef

Common purely abstract query API trait for querying abstract syntax trees (or other object trees).

It has been heavily inspired by the yaidom project for XML querying.

Linear Supertypes
AnyRef, Any
Known Subclasses
AbbrevForwardStep, AbbrevReverseStep, AdditionOp, Minus, Plus, AdditiveExpr, AndExpr, AnyArrayTest, AnyAttributeTest, AnyElementTest, AnyFunctionTest, AnyItemType, AnyKindTest, AnyMapTest, AnyWildcard, Argument, ArgumentList, ArgumentPlaceholder, ArrayConstructor, ArrayTest, ArrowExpr, ArrowFunctionCall, ArrowFunctionSpecifier, AtomicOrUnionType, AttributeAxisAbbrevForwardStep, AttributeNameAndTypeTest, AttributeNameTest, AttributeTest, AttributeTypeTest, AxisStep, CastExpr, CastableExpr, CommentTest, Comp, ComparisonExpr, CompoundAdditiveExpr, CompoundAndExpr, CompoundArrowExpr, CompoundCastExpr, CompoundCastableExpr, CompoundComparisonExpr, CompoundExpr, CompoundInstanceOfExpr, CompoundIntersectExceptExpr, CompoundMultiplicativeExpr, CompoundOrExpr, CompoundPostfixExpr, CompoundRangeExpr, CompoundRelativePathExpr, CompoundSimpleMapExpr, CompoundStringConcatExpr, CompoundTreatExpr, CompoundUnaryExpr, CompoundUnionExpr, ContextItemExpr, CurlyArrayConstructor, DataPITest, DecimalLiteral, DocumentTest, DocumentTestContainingElementTest, DocumentTestContainingSchemaElementTest, DoubleLiteral, EQNameAsArrowFunctionSpecifier, ElementNameAndTypeTest, ElementNameTest, ElementTest, ElementTypeTest, EmptySequenceType, EnclosedExpr, ExactlyOneSequenceType, Expr, ExprSingle, ExprSingleArgument, ForExpr, ForwardAxis, Attribute, Child, Descendant, DescendantOrSelf, Following, FollowingSibling, Namespace, Self, ForwardAxisStep, ForwardStep, FunctionCall, FunctionItemExpr, FunctionTest, GeneralComp, Eq, Ge, Gt, Le, Lt, Ne, IfExpr, InlineFunctionExpr, InstanceOfExpr, IntegerLiteral, IntersectExceptExpr, IntersectExceptOp, Except, Intersect, ItemType, KeySpecifier, KindTest, KindTestItemType, LeafElem, LetExpr, Literal, LocalNameWildcard, MapConstructor, MapConstructorEntry, MapTest, MultiplicativeExpr, MultiplicativeOp, Div, IDiv, Mod, Times, NameTest, NamedFunctionRef, NamedKeySpecifier, NamespaceNodeTest, NamespaceWildcard, NillableElementNameAndTypeTest, NillableElementTypeTest, NodeComp, Follows, Is, Precedes, NodeTest, NonAbbrevForwardStep, NonAbbrevReverseStep, NonEmptySingleType, NumericLiteral, OneOrMoreSequenceType, OrExpr, PITest, Param, ParamList, ParenthesizedExpr, ParenthesizedExprAsArrowFunctionSpecifier, ParenthesizedExprKeySpecifier, ParenthesizedItemType, PathExpr, PathExprStartingWithDoubleSlash, PathExprStartingWithSingleSlash, PositionalKeySpecifier, Postfix, PostfixExpr, PostfixLookup, PotentiallyEmptySingleType, Predicate, PrefixWildcard, PrimaryExpr, QuantifiedExpr, Quantifier, EveryQuantifier, SomeQuantifier, RangeExpr, RelativePathExpr, ReverseAxis, Ancestor, AncestorOrSelf, Parent, Preceding, PrecedingSibling, ReverseAxisStep, ReverseStep, SchemaAttributeTest, SchemaElementTest, SequenceType, SimpleAbbrevForwardStep, SimpleAdditiveExpr, SimpleAndExpr, SimpleArrowExpr, SimpleBindingInQuantifiedExpr, SimpleCastExpr, SimpleCastableExpr, SimpleComparisonExpr, SimpleDocumentTest, SimpleExpr, SimpleForBinding, SimpleInstanceOfExpr, SimpleIntersectExceptExpr, SimpleLetBinding, SimpleMapExpr, SimpleMultiplicativeExpr, SimpleNameTest, SimpleOrExpr, SimplePITest, SimplePostfixExpr, SimpleRangeExpr, SimpleRelativePathExpr, SimpleSimpleMapExpr, SimpleStringConcatExpr, SimpleTreatExpr, SimpleUnaryExpr, SimpleUnionExpr, SingleType, SlashOnlyPathExpr, SquareArrayConstructor, StepExpr, StepOp, DoubleSlash, SingleSlash, StringConcatExpr, StringLiteral, TargetPITest, TextTest, TreatExpr, TypeDeclaration, TypedArrayTest, TypedFunctionTest, TypedMapTest, UnaryExpr, UnaryLookup, UnaryOp, Minus, Plus, UnionExpr, ValueComp, Eq, Ge, Gt, Le, Lt, Ne, ValueExpr, VarRef, VarRefAsArrowFunctionSpecifier, VariableBinding, VariableIntroducingExpr, Wildcard, WildcardKeySpecifier, XPathElem, XPathExpr, ZeroOrMoreSequenceType, ZeroOrOneSequenceType, ElemLike
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElemApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def children: IndexedSeq[E]

    Finds all child elements.

  2. abstract def filterElems(p: (E) => Boolean): IndexedSeq[E]

    Finds all descendant elements obeying the given predicate.

  3. abstract def filterElemsOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): IndexedSeq[A]

    Finds all descendant elements of the given element type obeying the given predicate.

  4. abstract def filterElemsOrSelf(p: (E) => Boolean): IndexedSeq[E]

    Finds all descendant-or-self elements obeying the given predicate.

    Finds all descendant-or-self elements obeying the given predicate. This is a core method in that several methods are implemented directly or indirectly in terms of this one.

  5. abstract def filterElemsOrSelfOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): IndexedSeq[A]

    Finds all descendant-or-self elements of the given element type obeying the given predicate.

  6. abstract def findAllElems: IndexedSeq[E]

    Finds all descendant elements.

  7. abstract def findAllElemsOfType[A <: E](cls: ClassTag[A]): IndexedSeq[A]

    Finds all descendant elements of the given element type.

  8. abstract def findAllElemsOrSelf: IndexedSeq[E]

    Finds all descendant-or-self elements.

  9. abstract def findAllElemsOrSelfOfType[A <: E](cls: ClassTag[A]): IndexedSeq[A]

    Finds all descendant-or-self elements of the given element type.

  10. abstract def findAllTopmostElemsOfType[A <: E](cls: ClassTag[A]): IndexedSeq[A]

    Finds all topmost descendant elements of the given element type.

  11. abstract def findAllTopmostElemsOrSelfOfType[A <: E](cls: ClassTag[A]): IndexedSeq[A]

    Finds all topmost descendant-or-self elements of the given element type.

  12. abstract def findElem(p: (E) => Boolean): Option[E]

    Finds the first descendant element obeying the given predicate, if any, returning an optional result.

  13. abstract def findElemOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): Option[A]

    Finds the first descendant element of the given element type obeying the given predicate, if any, returning an optional result.

  14. abstract def findElemOrSelf(p: (E) => Boolean): Option[E]

    Finds the first descendant-or-self element obeying the given predicate, if any, returning an optional result.

  15. abstract def findElemOrSelfOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): Option[A]

    Finds the first descendant-or-self element of the given element type obeying the given predicate, if any, returning an optional result.

  16. abstract def findFirstElemOfType[A <: E](cls: ClassTag[A]): Option[A]

    Finds the first descendant element of the given element type, if any, returning an optional result.

  17. abstract def findFirstElemOrSelfOfType[A <: E](cls: ClassTag[A]): Option[A]

    Finds the first descendant-or-self element of the given element type, if any, returning an optional result.

  18. abstract def findTopmostElems(p: (E) => Boolean): IndexedSeq[E]

    Finds all topmost descendant elements obeying the given predicate.

  19. abstract def findTopmostElemsOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): IndexedSeq[A]

    Finds all topmost descendant elements of the given element type obeying the given predicate.

  20. abstract def findTopmostElemsOrSelf(p: (E) => Boolean): IndexedSeq[E]

    Finds all topmost elements-or-self obeying the given predicate.

    Finds all topmost elements-or-self obeying the given predicate. This is a core method in that several methods are implemented directly or indirectly in terms of this one.

  21. abstract def findTopmostElemsOrSelfOfType[A <: E](cls: ClassTag[A])(p: (A) => Boolean): IndexedSeq[A]

    Finds all topmost descendant-or-self elements of the given element type obeying the given predicate.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped