io.github.scalats.core

Members list

Concise view

Type members

Classlikes

The implementations must be class with a no-arg constructor.

The implementations must be class with a no-arg constructor.

See:

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class Emitter(val settings: Settings, out: Printer, importResolver: ImportResolver, declarationMapper: DeclarationMapper, typeMapper: TypeMapper)

Default emitter.

Default emitter.

Attributes

out

the function to select a PrintStream from type name

Graph
Supertypes
class Object
trait Matchable
class Any
final class Field(val name: String, val flags: Set[Flag])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Field

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Field.type

Functional type to customize the field naming and access.

Functional type to customize the field naming and access.

import scala.collection.immutable.Set
import io.github.scalats.ast.TypeRef
import io.github.scalats.core.{
 Settings, Field, FieldMapper
}

class CustomFieldMapper extends FieldMapper {
 def apply(
   settings: Settings,
   ownerType: String,
   propertyName: String,
   propertyType: TypeRef) =
   Field("_" + propertyName, Set.empty)
}

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Identity.type
object SnakeCase.type

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Generator

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Resolves the imports for TypeScript declarations. Must be consistent with applied Printer and DeclarationMapper.

Resolves the imports for TypeScript declarations. Must be consistent with applied Printer and DeclarationMapper.

The implementations must be class with a no-arg constructor.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait Logger

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Logger

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type
trait Printer extends (Settings, Kind, String, ListSet[TypeRef]) => PrintStream

Attributes

Companion:
object
Graph
Supertypes
trait (Settings, Kind, String, ListSet[TypeRef]) => PrintStream
class Object
trait Matchable
class Any
Known subtypes
object Printer

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Printer.type
final class ScalaParser(compiled: Set[String], logger: Logger)(using ctx: Context)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class Settings(val emitCodecs: EmitCodecs, val optionToNullable: Boolean, val prependEnclosingClassNames: Boolean, val indent: String, val lineSeparator: TypeScriptLineSeparator, val typeNaming: TypeNaming, val fieldMapper: FieldMapper, val discriminator: Discriminator)

Created by Milosz on 09.12.2016.

Created by Milosz on 09.12.2016.

Attributes

optionToNullable

generate nullable type as T | null

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Settings

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class Transpiler(config: Settings)

Created by Milosz on 09.06.2016.

Created by Milosz on 09.06.2016.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

The implementations must be class with a no-arg constructor.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
object TypeMapper

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait TypeNaming extends (Settings, TypeRef) => String

Attributes

Companion:
object
Graph
Supertypes
trait (Settings, TypeRef) => String
class Object
trait Matchable
class Any
Known subtypes
object Identity.type
object TypeNaming

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type