public static final class TypeRewriteRule.OrElse extends Object implements TypeRewriteRule
TypeRewriteRule.All, TypeRewriteRule.CheckOnce, TypeRewriteRule.Everywhere, TypeRewriteRule.IfSame<B>, TypeRewriteRule.Nop, TypeRewriteRule.One, TypeRewriteRule.OrElse, TypeRewriteRule.Seq
Modifier and Type | Field and Description |
---|---|
protected TypeRewriteRule |
first |
protected by-name TypeRewriteRule |
second |
Constructor and Description |
---|
OrElse(TypeRewriteRule first,
by-name TypeRewriteRule second) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
<A> Optional<RewriteResult<A,?>> |
rewrite(Type<A> type) |
protected final TypeRewriteRule first
protected final by-name TypeRewriteRule second
public OrElse(TypeRewriteRule first, by-name TypeRewriteRule second)
public <A> Optional<RewriteResult<A,?>> rewrite(Type<A> type)
rewrite
in interface TypeRewriteRule