All Methods Static Methods Default Methods
Modifier and Type |
Method and Description |
static TypeTemplate |
allWithRemainder(TypeTemplate first,
TypeTemplate... rest) |
static <F,G> Type<(F,G)> |
and(Type<F> first,
Type<G> second) |
static <F,G,H> Type<(F,(G,H))> |
and(Type<F> first,
Type<G> second,
Type<H> third) |
static <F,G,H,I> Type<(F,(G,(H,I)))> |
and(Type<F> first,
Type<G> second,
Type<H> third,
Type<I> forth) |
static TypeTemplate |
and(TypeTemplate first,
TypeTemplate... rest) |
static TypeTemplate |
and(TypeTemplate first,
TypeTemplate second) |
static Type<Boolean> |
bool() |
static Type<Byte> |
byteType() |
static TypeTemplate |
check(String name,
int index,
TypeTemplate element) |
static <K,V> CompoundList.CompoundListType<K,V> |
compoundList(Type<K> key,
Type<V> value) |
static <V> CompoundList.CompoundListType<String,V> |
compoundList(Type<V> value) |
static TypeTemplate |
compoundList(TypeTemplate element) |
static TypeTemplate |
compoundList(TypeTemplate key,
TypeTemplate element) |
static TypeTemplate |
constType(Type<?> type) |
static Type<Double> |
doubleType() |
static TypeTemplate |
emptyPart() |
static Type<Unit> |
emptyPartType() |
static <A> Tag.TagType<A> |
field(String name,
Type<A> element) |
static TypeTemplate |
field(String name,
TypeTemplate element) |
static <FT> OpticFinder<FT> |
fieldFinder(String name,
Type<FT> type) |
static TypeTemplate |
fields(String name1,
TypeTemplate element1) |
static TypeTemplate |
fields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2) |
static TypeTemplate |
fields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3) |
static TypeTemplate |
fields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
TypeTemplate rest) |
static TypeTemplate |
fields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
TypeTemplate rest) |
static TypeTemplate |
fields(String name,
TypeTemplate element,
TypeTemplate rest) |
static Type<Float> |
floatType() |
static <A,B> Type<(A) -> B> |
func(Type<A> input,
Type<B> output) |
static <A> Type<A> |
hook(Type<A> type,
Hook.HookFunction preRead,
Hook.HookFunction postWrite) |
static TypeTemplate |
hook(TypeTemplate template,
Hook.HookFunction preRead,
Hook.HookFunction postWrite) |
static TypeTemplate |
id(int index) |
static Type<Integer> |
intType() |
static <A> List.ListType<A> |
list(Type<A> first) |
static TypeTemplate |
list(TypeTemplate element) |
static Type<Long> |
longType() |
static <A> Type<(String,A)> |
named(String name,
Type<A> element) |
static TypeTemplate |
named(String name,
TypeTemplate element) |
static <FT> OpticFinder<FT> |
namedChoice(String name,
Type<FT> type) |
static <A> Type<(A|Unit)> |
optional(Type<A> type) |
static TypeTemplate |
optional(TypeTemplate value) |
static TypeTemplate |
optionalFields(String name,
TypeTemplate element) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
String name4,
TypeTemplate element4) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
String name4,
TypeTemplate element4,
String name5,
TypeTemplate element5) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
String name4,
TypeTemplate element4,
String name5,
TypeTemplate element5,
TypeTemplate rest) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
String name4,
TypeTemplate element4,
TypeTemplate rest) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
String name3,
TypeTemplate element3,
TypeTemplate rest) |
static TypeTemplate |
optionalFields(String name1,
TypeTemplate element1,
String name2,
TypeTemplate element2,
TypeTemplate rest) |
static TypeTemplate |
optionalFields(String name,
TypeTemplate element,
TypeTemplate rest) |
static <F,G> Type<(F|G)> |
or(Type<F> first,
Type<G> second) |
static TypeTemplate |
or(TypeTemplate left,
TypeTemplate right) |
static TypeTemplate |
remainder() |
static OpticFinder<Dynamic<?>> |
remainderFinder() |
static Type<Dynamic<?>> |
remainderType() |
static Type<Short> |
shortType() |
static Type<String> |
string() |
static <K> TaggedChoice<K> |
taggedChoice(String name,
Type<K> keyType,
Map<K,TypeTemplate> templates) |
static <K> TaggedChoice<K> |
taggedChoiceLazy(String name,
Type<K> keyType,
Map<K,by-name TypeTemplate> templates) |
static <K> Type<(K,?)> |
taggedChoiceType(String name,
Type<K> keyType,
Map<K,? extends Type<?>> types) |
static <FT> OpticFinder<FT> |
typeFinder(Type<FT> type) |
static Unit |
unit() |