Class

com.twitter.scrooge.frontend

TypeResolver

Related Doc: package frontend

Permalink

case class TypeResolver(typeMap: Map[String, FieldType] = Map.empty, constMap: Map[String, ConstDefinition] = Map.empty, serviceMap: Map[String, Service] = Map.empty, includeMap: Map[String, ResolvedDocument] = Map.empty) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypeResolver
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypeResolver(typeMap: Map[String, FieldType] = Map.empty, constMap: Map[String, ConstDefinition] = Map.empty, serviceMap: Map[String, Service] = Map.empty, includeMap: Map[String, ResolvedDocument] = Map.empty)

    Permalink

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 apply(c: RHS, fieldType: FieldType): RHS

    Permalink
  5. def apply(t: FieldType): FieldType

    Permalink
  6. def apply(t: FunctionType): FunctionType

    Permalink
  7. def apply(f: Field): Field

    Permalink
  8. def apply(f: Function): Function

    Permalink
  9. def apply(definition: Definition, scopePrefix: Option[Identifier]): ResolvedDefinition

    Permalink

    Resolves types in the given definition according to the current typeMap, and then returns an updated TypeResolver with the new definition bound, plus the resolved definition.

  10. def apply(doc: Document, scopePrefix: Option[Identifier] = None): ResolvedDocument

    Permalink

    Resolves all types in the given document.

    Resolves all types in the given document.

    scopePrefix

    the scope of the document if the document is an include

  11. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. val constMap: Map[String, ConstDefinition]

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

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getResolver(includePath: String, pos: Positional = ...): TypeResolver

    Permalink
    Attributes
    protected
  18. val includeMap: Map[String, ResolvedDocument]

    Permalink
  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def resolveConst(id: Identifier): (FieldType, RHS)

    Permalink
    Attributes
    protected
  24. def resolveFieldType(id: Identifier): FieldType

    Permalink
  25. def resolveServiceParent(parent: ServiceParent): Service

    Permalink
    Attributes
    protected
  26. val serviceMap: Map[String, Service]

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val typeMap: Map[String, FieldType]

    Permalink
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withConst(const: ConstDefinition): TypeResolver

    Permalink

    Returns a new TypeResolver with the given constant added.

    Returns a new TypeResolver with the given constant added.

    Attributes
    protected
  33. def withConstsFrom(doc: Document, scopePrefix: Option[Identifier]): TypeResolver

    Permalink

    Returns a new TypeResolver with the top level consts of doc added to the type map lazily.

    Returns a new TypeResolver with the top level consts of doc added to the type map lazily.

    Attributes
    protected
  34. def withTypesFrom(doc: Document, scopePrefix: Option[Identifier]): TypeResolver

    Permalink

    Returns a new TypeResolver with the top level types of doc added to the type map lazily.

    Returns a new TypeResolver with the top level types of doc added to the type map lazily.

    Attributes
    protected

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped