o

au.csiro.pathling.encoders

EncodingContext

object EncodingContext

Provides a context for tracking nesting depth of element definition for encoders. Usage:

EncodingContext.runWithContext {

 // anywhere in the call stack to increase the nesting level
 // of someDefinition

 EncodingContext.withDefinition(someDefinition) {
   // anywhere in the call stack to check the current nesting
   // level of someDefinition

   EncodingContext.currentNestingLevel(someDefinition)
 }
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncodingContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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( ... ) @native() @IntrinsicCandidate()
  6. def currentNestingLevel(definition: BaseRuntimeElementDefinition[_]): Int

    Obtains the nesting level of a element definition from the current encoding context.

    Obtains the nesting level of a element definition from the current encoding context.

    definition

    the element definition

    returns

    the current nesting level

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. def runWithContext[T](body: ⇒ T): T

    Evaluates given code in a new encoding context.

    Evaluates given code in a new encoding context.

    T

    the return type for the code to evaluate

    body

    the code to evaluate

    returns

    the results of the code evaluation

  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def withDefinition[T](definition: BaseRuntimeElementCompositeDefinition[_])(body: ⇒ T): T

    Evaluates given code in the context with increased nesting level for given element definition.

    Evaluates given code in the context with increased nesting level for given element definition.

    T

    the return type for the code to evaluate

    definition

    the element definition to increased the nesting level for.

    body

    the code to evaluate

    returns

    the results of the code evaluation

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