|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
R - この定数を宣言した列挙型の実行時型public interface CtEnumConstant<R extends Enum<?>>
列挙型定数。
| メソッドの概要 | |
|---|---|
CtNewInstance<? extends R> |
getInitializer()
この列挙型定数を初期化する式を返す。 |
CtEnumConstant<R> |
getMaster()
この参照のマスタ参照を返す。 |
CtEnumConstant<R> |
newReference()
この宣言を参照する要素を生成する。 |
| インタフェース org.ashikunep.irenka.dom.CtField から継承されたメソッド |
|---|
accessFrom, getDeclarationPersistence, inherit |
| インタフェース org.ashikunep.irenka.dom.CtMember から継承されたメソッド |
|---|
getDeclaringType |
| インタフェース org.ashikunep.irenka.dom.CtReference から継承されたメソッド |
|---|
getAnnotation, getAnnotations, getJavadoc, getModifiers, getModifiersAndAnnotations, getVisibility, isMaster, isVisibleFrom |
| インタフェース org.ashikunep.irenka.dom.CtElement から継承されたメソッド |
|---|
accept, accept, copy, copy, equals, exists, freezeChildren, freezeParent, getChild, getCompilationUnit, getCorrespondedFile, getElementKind, getGenericContext, getLocation, getLocationInParent, getParent, getProperty, hashCode, isChildrenFrozen, isModified, isParentFrozen, isSynthetic, setChild, setLocation, setParent, substitute |
| インタフェース org.ashikunep.irenka.util.ClientStorageContainer から継承されたメソッド |
|---|
getClientStorage, putClientStorage |
| インタフェース org.ashikunep.irenka.dom.CtVariable から継承されたメソッド |
|---|
access |
| インタフェース org.ashikunep.irenka.dom.CtNamedReference から継承されたメソッド |
|---|
getSimpleName, setSimpleName |
| インタフェース org.ashikunep.irenka.dom.CtReference から継承されたメソッド |
|---|
getAnnotation, getAnnotations, getJavadoc, getModifiers, getModifiersAndAnnotations, getVisibility, isMaster, isVisibleFrom |
| インタフェース org.ashikunep.irenka.dom.CtElement から継承されたメソッド |
|---|
accept, accept, copy, copy, equals, exists, freezeChildren, freezeParent, getChild, getCompilationUnit, getCorrespondedFile, getElementKind, getGenericContext, getLocation, getLocationInParent, getParent, getProperty, hashCode, isChildrenFrozen, isModified, isParentFrozen, isSynthetic, setChild, setLocation, setParent, substitute |
| インタフェース org.ashikunep.irenka.util.ClientStorageContainer から継承されたメソッド |
|---|
getClientStorage, putClientStorage |
| インタフェース org.ashikunep.irenka.dom.CtTypedReference から継承されたメソッド |
|---|
getType |
| インタフェース org.ashikunep.irenka.dom.CtReference から継承されたメソッド |
|---|
getAnnotation, getAnnotations, getJavadoc, getModifiers, getModifiersAndAnnotations, getVisibility, isMaster, isVisibleFrom |
| インタフェース org.ashikunep.irenka.dom.CtElement から継承されたメソッド |
|---|
accept, accept, copy, copy, equals, exists, freezeChildren, freezeParent, getChild, getCompilationUnit, getCorrespondedFile, getElementKind, getGenericContext, getLocation, getLocationInParent, getParent, getProperty, hashCode, isChildrenFrozen, isModified, isParentFrozen, isSynthetic, setChild, setLocation, setParent, substitute |
| インタフェース org.ashikunep.irenka.util.ClientStorageContainer から継承されたメソッド |
|---|
getClientStorage, putClientStorage |
| メソッドの詳細 |
|---|
CtEnumConstant<R> getMaster()
CtReference の記述:
CtField<R extends Enum<?>> 内の getMasterCtMember 内の getMasterCtReference 内の getMasterCtVariable<R extends Enum<?>> 内の getMasterCtEnumConstant<R> newReference()
CtField<R extends Enum<?>> 内の newReferenceCtMember 内の newReferenceCtReference 内の newReferenceCtVariable<R extends Enum<?>> 内の newReference@Ignorable CtNewInstance<? extends R> getInitializer()
enum Hoge {
AAA,
BBB(10, "bbb"),
CCC { ... },
DDD(30, "ddd") { ... },
;
private Hoge(int a, String b) {
...
}
}
上記は、暗黙に次のような変換がおこなわれるものとする。
class Hoge extends Enum<Hoge> {
Hoge AAA = new Hoge();
Hoge BBB = new Hoge(10, "bbb");
Hoge CCC = new Hoge(){ ... };
Hoge DDD = new Hoge(30, "ddd") { ... };
;
private Hoge() {
...
}
private Hoge(int a, String b) {
...
}
}
CtField<R extends Enum<?>> 内の getInitializerCtInitializableVariable<R extends Enum<?>> 内の getInitializer
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||