All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
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 abstract Codec<A> |
buildCodec() |
abstract TypeTemplate |
buildTemplate() |
Codec<A> |
codec() |
boolean |
equals(Object o) |
abstract boolean |
equals(Object o,
boolean ignoreRecursionPoints,
boolean checkIndex) |
Optional<RewriteResult<A,?>> |
everywhere(TypeRewriteRule rule,
PointFreeRule optimizationRule,
boolean recurse,
boolean checkIndex) |
Optional<Type<?>> |
findCheckedType(int index) |
Optional<TaggedChoice.TaggedChoiceType<?>> |
findChoiceType(String name,
int index) |
OpticFinder<A> |
finder() |
OpticFinder<?> |
findField(String name) |
Type<?> |
findFieldType(String name) |
Optional<Type<?>> |
findFieldTypeOpt(String name) |
<FT,FR> (TypedOptic<A,?,FT,FR>|Type.FieldNotFoundException) |
findType(Type<FT> type,
Type<FR> resultType,
Type.TypeMatcher<FT,FR> matcher,
boolean recurse) |
<FT,FR> (TypedOptic<A,?,FT,FR>|Type.FieldNotFoundException) |
findTypeCached(Type<FT> type,
Type<FR> resultType,
Type.TypeMatcher<FT,FR> matcher,
boolean recurse) |
<FT,FR> (TypedOptic<A,?,FT,FR>|Type.FieldNotFoundException) |
findTypeInChildren(Type<FT> type,
Type<FR> resultType,
Type.TypeMatcher<FT,FR> matcher,
boolean recurse) |
<FT,FR> Type<?> |
getSetType(OpticFinder<FT> optic,
Type<FR> newType) |
<B> Optional<A> |
ifSame(Type<B> type,
B value) |
<B> Optional<RewriteResult<A,?>> |
ifSame(Type<B> type,
RewriteResult<B,?> value) |
<B> Optional<A> |
ifSame(Typed<B> value) |
Optional<RewriteResult<A,?>> |
one(TypeRewriteRule rule)
run rule on exactly one child
|
static <S,T,A,B> RewriteResult<S,T> |
opticView(Type<S> type,
RewriteResult<A,B> view,
TypedOptic<S,T,A,B> optic) |
Optional<A> |
point(DynamicOps<?> ops)
populate with the default value, if possible
only initializes empty things
|
Optional<Typed<A>> |
pointTyped(DynamicOps<?> ops) |
<T> DataResult<(A,Dynamic<T>)> |
read(Dynamic<T> input) |
<T> DataResult<(Optional<?>,T)> |
read(DynamicOps<T> ops,
TypeRewriteRule rule,
PointFreeRule fRule,
T input) |
<T> DataResult<T> |
readAndWrite(DynamicOps<T> ops,
Type<?> expectedType,
TypeRewriteRule rule,
PointFreeRule fRule,
T input) |
<T> DataResult<(Typed<A>,T)> |
readTyped(Dynamic<T> input) |
<T> DataResult<(Typed<A>,T)> |
readTyped(DynamicOps<T> ops,
T input) |
Optional<RewriteResult<A,?>> |
rewrite(TypeRewriteRule rule,
PointFreeRule fRule) |
RewriteResult<A,?> |
rewriteOrNop(TypeRewriteRule rule) |
TypeTemplate |
template() |
static <A> Type<A> |
unbox(Type.Mu<A> box) |
Type<?> |
updateMu(RecursiveTypeFamily newFamily) |
<T> DataResult<T> |
write(DynamicOps<T> ops,
A value) |
<T> DataResult<Dynamic<T>> |
writeDynamic(DynamicOps<T> ops,
A value) |