private List<MetaMethod> getSpecialTypeMethods() { final List<MetaMethod> meths = new ArrayList<>(); final JEnumType type = getEnclosedMetaObject().isEnum(); if (type != null) { meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, String.class, "name")); meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, Enum.class, "valueOf", Parameter.of( String.class, "p").getMetaParameter())); meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, Enum[].class, "values")); } return meths; }
private List<MetaMethod> getSpecialTypeMethods() { final List<MetaMethod> meths = new ArrayList<>(); final JEnumType type = getEnclosedMetaObject().isEnum(); if (type != null) { meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, String.class, "name")); meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, Enum.class, "valueOf", Parameter.of( String.class, "p").getMetaParameter())); meths.add(new GWTSpecialMethod(this, DefModifiers.none(), Scope.Public, Enum[].class, "values")); } return meths; }