arcadia.literals

type-name

Syntax

  • (type-name sym)

Arguments

  • sym

longest-constructor-signature

Syntax

  • (longest-constructor-signature t)

Description

Returns the longest parameter list for all constructors in type t

Arguments

  • tType

irregular-constructor-arguments


constructor-arguments

Syntax

  • (constructor-arguments t)

Description

A sequence of field names for t in the order of one of t's constructors

Arguments

  • tType

vector-constructor

Syntax

  • (vector-constructor t)

Description

Generates a fn that takes a vector and constructs an instance of t. Vector must have enough entries to fill the longest constructor arity in t.

Arguments

  • t

install-type-parser

Syntax

  • (install-type-parser t)

Arguments

  • t

reconstructor

Syntax

  • (reconstructor targetsym t)

Description

A vector of field access forms that mirrors a constructor's arguments

Arguments

  • targetsym
  • t

type-printer

Syntax

  • (type-printer t)

Description

Generates a fn that takes an object and a writer and prints the object out as a reader literal. Meant for print-method.

Arguments

  • t

install-type-printer

Syntax

  • (install-type-printer t)

Description

Register a printer for t with clojure's print-method

Arguments

  • t

install-printers-and-parsers

Syntax

  • (install-printers-and-parsers types)

Arguments

  • types

parse-Vector2


parse-Vector3


parse-Vector4


parse-Color32


parse-Color


parse-GradientAlphaKey


parse-MatchTargetWeightMask


parse-Plane


parse-Rect


parse-Ray2D


parse-Bounds


parse-Ray


parse-NetworkPlayer


parse-Quaternion


parse-LOD


parse-Keyframe


parse-GradientColorKey


parse-AnimationCurve

Syntax

  • (parse-AnimationCurve v)

Arguments

  • v

*object-db*


db-put

Syntax

  • (db-put obj)

Arguments

  • obj

db-get

Syntax

  • (db-get id)

Arguments

  • id

parse-Object

Syntax

  • (parse-Object id)

Arguments

  • id