Object/Trait

com.avsystem.scex.validation

SymbolValidator

Related Docs: trait SymbolValidator | package validation

Permalink

object SymbolValidator extends SymbolDsl

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SymbolValidator
  2. SymbolDsl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AttachPayload extends AnyRef

    Permalink
    Definition Classes
    SymbolDsl
  2. trait AttachedPayload extends AnyRef

    Permalink
    Definition Classes
    SymbolDsl
  3. trait CompleteWildcardSelector extends Any

    Permalink
    Definition Classes
    SymbolDsl
  4. trait DirectMemberSubsets extends ScalaMemberSubsets

    Permalink
    Definition Classes
    SymbolDsl
  5. trait DirectWildcardSelector extends WildcardSelector

    Permalink
    Definition Classes
    SymbolDsl
  6. type MemberAccessSpec = SymbolInfo[Boolean]

    Permalink
  7. trait MemberSubsets extends Any

    Permalink
    Definition Classes
    SymbolDsl
  8. trait MembersNamed extends Dynamic

    Permalink
    Definition Classes
    SymbolDsl
  9. type Payload = Boolean

    Permalink
    Definition Classes
    SymbolValidatorSymbolDsl
  10. trait ScalaMemberSubsets extends MemberSubsets

    Permalink
    Definition Classes
    SymbolDsl
  11. trait ScopeSpecifiers extends Any

    Permalink
    Definition Classes
    SymbolDsl
  12. trait WildcardSelector extends Any

    Permalink
    Definition Classes
    SymbolDsl
  13. class minus extends Annotation with StaticAnnotation

    Permalink

    Analogous to plus, but used to express wildcards with lower bounds, e.g.

    Analogous to plus, but used to express wildcards with lower bounds, e.g. java.lang.List[_ >: String]

    Definition Classes
    SymbolDsl
  14. class plus extends Annotation with StaticAnnotation

    Permalink

    Type annotation that serves as an alternative way of expressing existential types (types with wildcards) with higher bounds in the symbol DSL.

    Type annotation that serves as an alternative way of expressing existential types (types with wildcards) with higher bounds in the symbol DSL.

    For example, imagine you want to allow invoking insert method on all lists of type java.util.List[_ <: Number]. Unfortunately, the following will NOT work:

    allow {
    on { l: java.util.List[_ <: Number] =>
    l.insert _  // won't typecheck
    }
    }
    

    Scala typechecker will report an error on l.insert _ because this method cannot be called when the element type of the list is unknown.

    To overcome this limitation, you can use alternative syntax to express the same:

    allow {
    on { l: java.util.List[Number@plus] =>
    l.insert _
    }
    }
    

    Definition Classes
    SymbolDsl

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. def allStatic[A]: MemberSubsets

    Permalink

    Starts "wildcard" notation to allow or deny calling multiple Java static methods, with single DSL statement.

    Starts "wildcard" notation to allow or deny calling multiple Java static methods, with single DSL statement. For example:

    allStatic[String].membersNamed.valueOf
    

    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  5. macro def allow(expr: Any): List[MemberAccessSpec]

    Permalink

    Encloses block of statements that specify methods that are allowed to be called in expressions.

    Encloses block of statements that specify methods that are allowed to be called in expressions. Code inside allow block is virtualized - it's not actually compiled to bytecode. Multiple allow/deny blocks joined with ++ operator form an ACL-like structure.

  6. def apply(acl: List[MemberAccessSpec]): SymbolValidator

    Permalink
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. macro def deny(expr: Any): List[MemberAccessSpec]

    Permalink

    Encloses block of statements that specify methods that are not allowed to be called in expressions.

    Encloses block of statements that specify methods that are not allowed to be called in expressions. Code inside deny block is virtualized - it's not actually compiled to bytecode. Multiple allow/deny blocks joined with ++ operator form an ACL-like structure.

  10. val empty: SymbolValidator

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. macro def on[A](expr: (A) ⇒ Any): (A) ⇒ Any

    Permalink

    Starts a block that allows or denies calling some methods on instances of some type.

    Starts a block that allows or denies calling some methods on instances of some type. This is expressed using lambda expression like this:

    on { s: String =>
      s.compareTo _
      s.charAt _
      s.length
    }
    @param expr
    @tparam A
    @return
    

    Definition Classes
    SymbolDsl
  21. implicit def payloadAttach(any: Any): AttachPayload

    Permalink
    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. implicit def toDirectWildcardSelector(any: Any): DirectWildcardSelector

    Permalink
    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  24. def toString(): String

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

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

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

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

Inherited from SymbolDsl

Inherited from AnyRef

Inherited from Any

Ungrouped