class EnumFieldAccess { public enum MyEnum { SOME, ARBITRARY, VALUES } public MyEnum accessField() { return MyEnum.SOME; } }