abstract class ContextAwareVisitor[A, R] extends CollectingVisitor[Context[A], R]
An extended version of the CollectingVisitor
that also keeps
track of the sign of a sub-expression (positive or negative), and of the
bound variables.
- Alphabetic
- By Inheritance
- ContextAwareVisitor
- CollectingVisitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ContextAwareVisitor()
Type Members
- abstract class PreVisitResult extends AnyRef
- Definition Classes
- CollectingVisitor
- case class ShortCutResult(res: R) extends PreVisitResult with Product with Serializable
Skip the call to
postVisit
and do not visit any of the sub-expressions.Skip the call to
postVisit
and do not visit any of the sub-expressions. Instead, directly returnres
as result- Definition Classes
- CollectingVisitor
- case class SubArgs(args: Seq[A]) extends PreVisitResult with Product with Serializable
Specify the arguments to use for the individual sub-expressions
Specify the arguments to use for the individual sub-expressions
- Definition Classes
- CollectingVisitor
- case class TryAgain(newT: IExpression, newArg: A) extends PreVisitResult with Product with Serializable
Call
preVisit
again with a different expression and argumentCall
preVisit
again with a different expression and argument- Definition Classes
- CollectingVisitor
- case class UniSubArgs(arg: A) extends PreVisitResult with Product with Serializable
Use
arg
for each of the direct sub-expressionsUse
arg
for each of the direct sub-expressions- Definition Classes
- CollectingVisitor
Abstract Value Members
- abstract def postVisit(t: IExpression, arg: Context[A], subres: Seq[R]): R
- Definition Classes
- CollectingVisitor
Concrete Value Members
- case object KeepArg extends PreVisitResult with Product with Serializable
Use the same argument for the direct sub-expressions as for this expression
Use the same argument for the direct sub-expressions as for this expression
- Definition Classes
- CollectingVisitor
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def preVisit(t: IExpression, arg: Context[A]): PreVisitResult
- Definition Classes
- ContextAwareVisitor → CollectingVisitor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def visit(expr: IExpression, arg: Context[A]): R
- Definition Classes
- CollectingVisitor
- def visitWithoutResult(expr: IExpression, arg: Context[A]): Unit
- Definition Classes
- CollectingVisitor
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)