public static enum TypeRewriteRule.Nop extends Enum<TypeRewriteRule.Nop> implements TypeRewriteRule, by-name TypeRewriteRule
TypeRewriteRule.All, TypeRewriteRule.CheckOnce, TypeRewriteRule.Everywhere, TypeRewriteRule.IfSame<B>, TypeRewriteRule.Nop, TypeRewriteRule.One, TypeRewriteRule.OrElse, TypeRewriteRule.Seq
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
TypeRewriteRule |
get() |
<A> Optional<RewriteResult<A,?>> |
rewrite(Type<A> type) |
static TypeRewriteRule.Nop |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeRewriteRule.Nop[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeRewriteRule.Nop INSTANCE
public static TypeRewriteRule.Nop[] values()
for (TypeRewriteRule.Nop c : TypeRewriteRule.Nop.values()) System.out.println(c);
public static TypeRewriteRule.Nop valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <A> Optional<RewriteResult<A,?>> rewrite(Type<A> type)
rewrite
in interface TypeRewriteRule
public TypeRewriteRule get()
get
in interface by-name TypeRewriteRule