Class

razie.base.scripting

ScriptContextImpl

Related Doc: package scripting

Permalink

class ScriptContextImpl extends WrapAttrAccess with ScriptContext

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptContextImpl
  2. ScriptContext
  3. WrapAttrAccess
  4. AA
  5. AttrAccessImpl
  6. JavaAttrAccessImpl
  7. ScalaAttrAccessImpl
  8. AttrAccess
  9. ActionContext
  10. ScalaAttrAccess
  11. JavaAttrAccess
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScriptContextImpl(parent: AttrAccess, pairs: <repeated...>[AnyRef])

    Permalink
  2. new ScriptContextImpl(parent: AttrAccess, aa: AttrAccessImpl)

    Permalink
  3. new ScriptContextImpl(parent: AttrAccess)

    Permalink
  4. new ScriptContextImpl(pairs: <repeated...>[AnyRef])

    Permalink
  5. new ScriptContextImpl()

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(other: AA): WrapAttrAccess

    Permalink
    Definition Classes
    AA
  4. def ++=(other: AA): AA

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. lazy val _attrs: HashMap[String, Any]

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  7. lazy val _order: ListBuffer[String]

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  8. lazy val _types: HashMap[String, AttrType]

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  9. def a(name: String): AnyRef

    Permalink

    I'm really starting to hate typing...

    I'm really starting to hate typing... shortcut for getAttr

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  10. def addToUrl(url: String): String

    Permalink

    add these attributes to an url, respecting the url parm format, i.e.

    add these attributes to an url, respecting the url parm format, i.e. getMovie?name=300.divx&producer=whoknows

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clear(): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def define(macro: String, expr: String): Unit

    Permalink

    define a new function - these are evaluated every time they are invoked.

    define a new function - these are evaluated every time they are invoked. these also overwrite another symbol, so you can redefine a symbol to do something else.

    DO NOT forget to seal a context before passing it to untrusted plugins

    Definition Classes
    ScriptContextImplScriptContext
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    AA → AnyRef → Any
  17. def filter(f: (String, AnyRef) ⇒ Boolean): Iterable[String]

    Permalink
    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def foreach(f: (String, AnyRef) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  20. def get[T](name: String): Option[T]

    Permalink

    returns

    the value of the named attribute or null, coerced into an option of the given type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  21. def getAttr(name: String): AnyRef

    Permalink

    returns

    the value of the named attribute or null

    Definition Classes
    ScriptContextImplWrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  22. def getAttrType(name: String): AttrType

    Permalink

    returns

    the type of the named attribute OR null if not known. Default is by convention String

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def getOrElse(name: String, dflt: AnyRef): AnyRef

    Permalink

    returns

    the value of the named attribute or null

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  25. def getPopulatedAttr(): Iterable[String]

    Permalink

    iterate through the populated attributes.

    iterate through the populated attributes. BE very careful: if you set attrs with NULL values, they are NOT populated!

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  26. def guard(name: String, condition: String, expr: String): Unit

    Permalink

    TODO 3 FUNC use guards, document

    TODO 3 FUNC use guards, document

    Definition Classes
    ScriptContextImplScriptContext
  27. def hasAttrType(name: String): Boolean

    Permalink

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  28. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  30. def isPopulated(name: String): Boolean

    Permalink

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    ScriptContextImplWrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  31. def map[A, B](f: (String, A) ⇒ B): ScalaAttrAccess

    Permalink
    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  32. def mapValues[A, B](f: (A) ⇒ B): Seq[B]

    Permalink
    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def options(script: String, pos: Int): List[String]

    Permalink

    content assist options

    content assist options

    script

    - the line that needs assist

    pos

    - the position it needs assist - normally script.length-1

    Definition Classes
    ScriptContextImplScriptContext
  37. val parent: AttrAccess

    Permalink
    Definition Classes
    WrapAttrAccess
  38. def rebuild(): Map[String, Null]

    Permalink
    Definition Classes
    WrapAttrAccess
  39. def reset(): Unit

    Permalink

    Reset this context.

    Reset this context. Normally a context would cache a parser/interpreter instance. Reset will make sure this is in pristine condition .

    NOTE that any state MAY be erased. Any variable/values defined in previous scripts may be erased. It is often that the individual interpreter instances cache local values, which would disapear.

    Definition Classes
    ScriptContextImplScriptContext
  40. def sa(name: String): String

    Permalink

    most of the time they're just strings - i'll typecast here...

    most of the time they're just strings - i'll typecast here... this is a() typcast to String

    returns

    "" or the actual toString of the respective value

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  41. def set(name: String, v: Any, t: AttrType): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  42. def set(name: String, v: Any): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  43. def setAttr(pairs: <repeated...>[AnyRef]): Unit

    Permalink
    Definition Classes
    JavaAttrAccessImplJavaAttrAccess
  44. def setAttrPair(name: String, value: Any): Unit

    Permalink

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  45. def setAttrType(name: String, ttype: AttrType): Unit

    Permalink

    set the type of the named attribute

    set the type of the named attribute

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  46. def setAttrType(name: String, ttype: String): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  47. def sgetOrElse(name: String, dflt: String): String

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  48. def sgetPopulatedAttr: Set[String]

    Permalink

    build from sequence of parm/value pairs or other stuff

    build from sequence of parm/value pairs or other stuff

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  49. def size(): Int

    Permalink

    the number of populated attributes

    the number of populated attributes

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def tempcl(): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  52. def tempso(name: String): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  53. def toJson(iobj: JSONObject): JSONObject

    Permalink

    add my attributes to the JSONObject passed in.

    add my attributes to the JSONObject passed in. If null passed in, empty object is created first

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  54. def toMap: Map[String, String]

    Permalink
    Definition Classes
    AA
  55. def toPairs(): Array[AnyRef]

    Permalink

    same pairs format name,value,name,value...

    same pairs format name,value,name,value...

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  56. def toString(): String

    Permalink
    Definition Classes
    ScalaAttrAccessImpl → AnyRef → Any
  57. def toXml(): String

    Permalink

    some random xml format

    some random xml format

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  58. def toXmlWithChildren(me: Any, tag: String)(contents: (Any) ⇒ String): String

    Permalink
    Definition Classes
    AA
  59. def undefine(macro: String): Unit

    Permalink

    remove a function

    remove a function

    Definition Classes
    ScriptContextImplScriptContext
  60. def unguard(name: String, condition: String, expr: String): Unit

    Permalink

    TODO 3 FUNC use guards, document

    TODO 3 FUNC use guards, document

    Definition Classes
    ScriptContextImplScriptContext
  61. def unpopulate(name: String): Unit

    Permalink
    Definition Classes
    ScalaAttrAccessImpl
  62. def verbose(v: Boolean): Unit

    Permalink

    make execution verbose or not

    make execution verbose or not

    Definition Classes
    ScriptContextImplScriptContext
  63. final def wait(): Unit

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

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

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

Inherited from ScriptContext

Inherited from WrapAttrAccess

Inherited from AA

Inherited from AttrAccessImpl

Inherited from JavaAttrAccessImpl

Inherited from ScalaAttrAccessImpl

Inherited from AttrAccess

Inherited from ActionContext

Inherited from ScalaAttrAccess

Inherited from JavaAttrAccess

Inherited from AnyRef

Inherited from Any

Ungrouped