Type.Continue, Type.FieldNotFoundException, Type.Mu, Type.TypeError, Type.TypeMatcher<FT,FR>
Modifier and Type | Field and Description |
---|---|
protected Type<F> |
first |
protected Type<G> |
second |
Modifier and Type | Method and Description |
---|---|
RewriteResult<(F|G),?> |
all(TypeRewriteRule rule,
boolean recurse,
boolean checkIndex)
gmapT
run rule on all direct children and combine results
|
protected Codec<(F|G)> |
buildCodec() |
TypeTemplate |
buildTemplate() |
boolean |
equals(Object obj,
boolean ignoreRecursionPoints,
boolean checkIndex) |
Optional<Type<?>> |
findCheckedType(int index) |
Optional<TaggedChoice.TaggedChoiceType<?>> |
findChoiceType(String name,
int index) |
Optional<Type<?>> |
findFieldTypeOpt(String name) |
<FT,FR> (TypedOptic<(F|G),?,FT,FR>|Type.FieldNotFoundException) |
findTypeInChildren(Type<FT> type,
Type<FR> resultType,
Type.TypeMatcher<FT,FR> matcher,
boolean recurse) |
int |
hashCode() |
<F2,G2> RewriteResult<(F|G),?> |
mergeViews(RewriteResult<F,F2> leftView,
RewriteResult<G,G2> rightView) |
Optional<RewriteResult<(F|G),?>> |
one(TypeRewriteRule rule)
run rule on exactly one child
|
Optional<(F|G)> |
point(DynamicOps<?> ops)
populate with the default value, if possible
only initializes empty things
|
String |
toString() |
Type<?> |
updateMu(RecursiveTypeFamily newFamily) |
codec, equals, everywhere, finder, findField, findFieldType, findType, findTypeCached, getSetType, ifSame, ifSame, ifSame, opticView, pointTyped, read, read, readAndWrite, readTyped, readTyped, rewrite, rewriteOrNop, template, unbox, write, writeDynamic
public RewriteResult<(F|G),?> all(TypeRewriteRule rule, boolean recurse, boolean checkIndex)
Type
public <F2,G2> RewriteResult<(F|G),?> mergeViews(RewriteResult<F,F2> leftView, RewriteResult<G,G2> rightView)
public Optional<RewriteResult<(F|G),?>> one(TypeRewriteRule rule)
Type
public Type<?> updateMu(RecursiveTypeFamily newFamily)
public TypeTemplate buildTemplate()
buildTemplate
in class Type<(F|G)>
public Optional<TaggedChoice.TaggedChoiceType<?>> findChoiceType(String name, int index)
findChoiceType
in class Type<(F|G)>
public Optional<Type<?>> findCheckedType(int index)
findCheckedType
in class Type<(F|G)>
public boolean equals(Object obj, boolean ignoreRecursionPoints, boolean checkIndex)
public Optional<Type<?>> findFieldTypeOpt(String name)
findFieldTypeOpt
in class Type<(F|G)>
public Optional<(F|G)> point(DynamicOps<?> ops)
Type
public <FT,FR> (TypedOptic<(F|G),?,FT,FR>|Type.FieldNotFoundException) findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT,FR> matcher, boolean recurse)
findTypeInChildren
in class Type<(F|G)>