io.github.scalats.core

Members list

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
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion
trait
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.

Value parameters

out

the function to select a PrintStream from type name

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Field

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Field.type
trait FieldMapper extends (Settings, String, String, TypeRef) => Field

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
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Identity
object SnakeCase
object FieldMapper

Attributes

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Generator.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
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Logger

Attributes

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

Attributes

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

Attributes

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

Attributes

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.

Value parameters

optionToNullable

generate nullable type as T | null

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Settings

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Settings.type
final class Transpiler(config: Settings, logger: Logger)

Created by Milosz on 09.06.2016.

Created by Milosz on 09.06.2016.

Attributes

Supertypes
class Object
trait Matchable
class Any

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class DateAsString
object Defaults
Show all
Self type
object TypeMapper

Attributes

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

Attributes

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

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
TypeNaming.type