Trait/Object

eu.cdevreeze.xpathparser.queryapi

ElemApi

Related Docs: object ElemApi | package queryapi

Permalink

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, AdditiveExpr, Ancestor, AncestorOrSelf, AndExpr, AnyAttributeTest, AnyElementTest, AnyFunctionTest, AnyItemType, AnyKindTest, AnyWildcard, Argument, ArgumentList, ArgumentPlaceholder, AtomicOrUnionType, Attribute, AttributeAxisAbbrevForwardStep, AttributeNameAndTypeTest, AttributeNameTest, AttributeTest, AttributeTypeTest, AxisStep, CastExpr, CastableExpr, Child, CommentTest, Comp, ComparisonExpr, CompoundAdditiveExpr, CompoundComparisonExpr, CompoundIntersectExceptExpr, CompoundMultiplicativeExpr, CompoundRangeExpr, CompoundRelativePathExpr, ContextItemExpr, DataPITest, DecimalLiteral, Descendant, DescendantOrSelf, Div, DocumentTest, DocumentTestContainingElementTest, DocumentTestContainingSchemaElementTest, DoubleLiteral, DoubleSlash, ElemLike, ElementNameAndTypeTest, ElementNameTest, ElementTest, ElementTypeTest, EmptySequenceType, EnclosedExpr, Eq, Eq, EveryQuantifier, ExactlyOneSequenceType, Except, Expr, ExprSingle, ExprSingleArgument, Following, FollowingSibling, Follows, ForExpr, ForwardAxis, ForwardAxisStep, ForwardStep, FunctionCall, FunctionItemExpr, FunctionTest, Ge, Ge, GeneralComp, Gt, Gt, IDiv, IfExpr, InlineFunctionExpr, InstanceOfExpr, IntegerLiteral, Intersect, IntersectExceptExpr, IntersectExceptOp, Is, ItemType, KindTest, KindTestItemType, Le, Le, LeafElem, LetExpr, Literal, LocalNameWildcard, Lt, Lt, Minus, Minus, Mod, MultiplicativeExpr, MultiplicativeOp, NameTest, NamedFunctionRef, Namespace, NamespaceNodeTest, NamespaceWildcard, Ne, Ne, NillableElementNameAndTypeTest, NillableElementTypeTest, NodeComp, NodeTest, NonAbbrevForwardStep, NonAbbrevReverseStep, NonEmptySingleType, NumericLiteral, OneOrMoreSequenceType, OrExpr, PITest, Param, ParamList, Parent, ParenthesizedExpr, ParenthesizedItemType, PathExpr, PathExprStartingWithDoubleSlash, PathExprStartingWithSingleSlash, Plus, Plus, PostfixExpr, PotentiallyEmptySingleType, Precedes, Preceding, PrecedingSibling, Predicate, PredicateOrArgumentList, PrefixWildcard, PrimaryExpr, QuantifiedExpr, Quantifier, RangeExpr, RelativePathExpr, ReverseAxis, ReverseAxisStep, ReverseStep, SchemaAttributeTest, SchemaElementTest, Self, SequenceType, SimpleAbbrevForwardStep, SimpleAdditiveExpr, SimpleBindingInQuantifiedExpr, SimpleComparisonExpr, SimpleDocumentTest, SimpleForBinding, SimpleIntersectExceptExpr, SimpleLetBinding, SimpleMapExpr, SimpleMultiplicativeExpr, SimpleNameTest, SimplePITest, SimpleRangeExpr, SimpleRelativePathExpr, SingleSlash, SingleType, SlashOnlyPathExpr, SomeQuantifier, StepExpr, StepOp, StringConcatExpr, StringLiteral, TargetPITest, TextTest, Times, TreatExpr, TypeDeclaration, TypedFunctionTest, UnaryExpr, UnaryOp, UnionExpr, ValueComp, ValueExpr, VarRef, VariableBinding, VariableIntroducingExpr, Wildcard, XPathElem, XPathExpr, ZeroOrMoreSequenceType, ZeroOrOneSequenceType
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElemApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def children: IndexedSeq[E]

    Permalink

    Finds all child elements.

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

    Permalink

    Finds all descendant elements obeying the given predicate.

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

    Permalink

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

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

    Permalink

    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]

    Permalink

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

  6. abstract def findAllElems: IndexedSeq[E]

    Permalink

    Finds all descendant elements.

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

    Permalink

    Finds all descendant elements of the given element type.

  8. abstract def findAllElemsOrSelf: IndexedSeq[E]

    Permalink

    Finds all descendant-or-self elements.

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

    Permalink

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

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

    Permalink

    Finds all topmost descendant elements of the given element type.

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

    Permalink

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

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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    Finds all topmost descendant elements obeying the given predicate.

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

    Permalink

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

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

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped