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