public static class TypeRewriteRule.CheckOnce extends Object implements TypeRewriteRule
TypeRewriteRule.All, TypeRewriteRule.CheckOnce, TypeRewriteRule.Everywhere, TypeRewriteRule.IfSame<B>, TypeRewriteRule.Nop, TypeRewriteRule.One, TypeRewriteRule.OrElse, TypeRewriteRule.Seq
Constructor and Description |
---|
CheckOnce(TypeRewriteRule rule,
(Type<?>) -> void onFail) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
<A> Optional<RewriteResult<A,?>> |
rewrite(Type<A> type) |
public CheckOnce(TypeRewriteRule rule, (Type<?>) -> void onFail)
public <A> Optional<RewriteResult<A,?>> rewrite(Type<A> type)
rewrite
in interface TypeRewriteRule