see

See

abstract class See extends Binding

The See main class.

This one must be created by embedding applications.

Linear Supertypes
Binding, Resolver, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. See
  2. Binding
  3. Resolver
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new See()

Abstract Value Members

  1. abstract def clear(): Unit

    Removes all names from local scope.

    Removes all names from local scope. Names from a parent resolver are not affected.

    Definition Classes
    Binding
  2. abstract def contains(name: String): Boolean

    Checks, if the resolver will accept a name.

    Checks, if the resolver will accept a name.

    name

    Variable name to look up.

    returns

    True, if Resolver will provide a value for the name, otherwise false.

    Definition Classes
    Resolver
  3. abstract def copy: See

    Creates an independent copy of this scope.

    Creates an independent copy of this scope.

    returns

    A See context that can be used independent from the original one, e.g within a different thread. It will not contain any references to its source, but still uses the same resolver, if any.

  4. abstract def createSubContext: See

    Creates a new See context that may access the bindings of its parent.

    Creates a new See context that may access the bindings of its parent. Changing any non-local definition will also affect the parent context.

    returns

    A See context that is a subcontext of this one.

  5. abstract def eval(node: INode): IResult

    Evaluates a pre-parsed node tree.

    Evaluates a pre-parsed node tree.

    node

    Node returned by parse().

    returns

    Some kind of See result. For use within Java, you will probably want to call see.IResult#toJava upon it.

    In most cases, it is simpler to use one of of the convenience methods instead. However, any result may be assigned to a Sel variable using see.Resolver#set, even if no Java equivalent exists.

  6. abstract def get(name: String): AnyRef

    Retrieves value for a name.

    Retrieves value for a name.

    name

    Variable name to look up

    returns

    Value bound to that name. If the implementation cannot provide a value, it should return null.

    Definition Classes
    Resolver
  7. abstract def getNames(): Set[String]

    Retrieves a set of locally defined names.

    Retrieves a set of locally defined names.

    returns

    Set of names that are defined within local scope. The set may be empty.

    Definition Classes
    Binding
  8. abstract def getParent: Resolver

    Retrieves the parent resolver.

    Retrieves the parent resolver.

    returns

    Current parent resolver, may be null.

    Definition Classes
    Binding
  9. abstract def parse(expression: String): INode

    Parses the given expression into node tree.

    Parses the given expression into node tree.

    expression

    Expression to parse.

    returns

    Node tree for evaluation.

    Exceptions thrown
    ParseException,

    if expression is not a valid Sel expression.

  10. abstract def set(name: String, v: AnyRef): Unit

    Associates a value with a name.

    Associates a value with a name.

    name

    Variable name to (re-)define

    v

    Value to associate with the name. An implementation is not required to allow value setting. If it doesn't, it should silently ignore the request.

    Definition Classes
    Resolver
  11. abstract def setLocal(name: String, v: Boolean): Unit

    Convenience method for

    Convenience method for

    setLocal(name, new Boolean(v)) 
    
  12. abstract def setLocal(name: String, v: Double): Unit

    Convenience method for

    Convenience method for

    setLocal(name, new Double(v)) 
    
  13. abstract def setLocal(name: String, v: Int): Unit

    Convenience method for

    Convenience method for

    setLocal(name, new Long(v)) 
    
  14. abstract def setLocal(name: String, v: AnyRef): Unit

    Defines a name within current resolver.

    Defines a name within current resolver. The name association will be created within local scope, even if the parent resolver contains a definition for that name.

    name

    Variable name to (re-)define

    v

    Value to associate with the name. May be null, in which case the name is still regarded as defined, but will cause an evaluation error, if it is dereferenced.

    Definition Classes
    Binding
  15. abstract def setParent(r: Resolver): Unit

    Sets the parent resolver for the binding.

    Sets the parent resolver for the binding. Any name reference that cannot be resolved locally will be forwarded to the parent resolver.

    r

    Resolver to use as parent. May be null.

    Definition Classes
    Binding

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  10. def eval(expression: String): IResult

    Parses the given expression and evaluates the resulting node tree.

    Parses the given expression and evaluates the resulting node tree. This is just a conveninence method for

     eval(parse(expression)) 
    
  11. def evalAsBoolean(expr: String): Boolean

  12. def evalAsBoolean(node: INode): Boolean

    Evaluates node and converts result into boolean.

  13. def evalAsDouble(expr: String): Double

  14. def evalAsDouble(node: INode): Double

    Evaluates node and converts result into double.

  15. def evalAsLong(expr: String): Long

  16. def evalAsLong(node: INode): Long

    Evaluates node and converts result into long.

  17. def evalAsObject(expr: String): AnyRef

  18. def evalAsObject(node: INode): AnyRef

    Evaluates node just converting the result into its Java representation.

    Evaluates node just converting the result into its Java representation. This method must be called, if a non-primitive result is expected. It will still throw an EvalException, if evaluation itself fails, but not for any conversion failures.

  19. def evalAsString(expr: String): String

  20. def evalAsString(node: INode): String

    Evaluates node and converts result into String.

  21. def finalize(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. final def set(name: String, v: Boolean): Unit

    Convenience method for

    Convenience method for

     set(name, new Boolean(v)) 
    
  29. final def set(name: String, v: Double): Unit

    Convenience method for

    Convenience method for

     set(name, new Double(v)) 
    
  30. final def set(name: String, v: Int): Unit

    Convenience method for

    Convenience method for

     set(name, new Long(v)) 
    
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Binding

Inherited from Resolver

Inherited from AnyRef

Inherited from Any