public class JavaEnumImpl extends AbstractJavaSourceMemberHolder<JavaEnumSource> implements JavaEnumSource
body, document, enclosingType, loader, unit| Constructor and Description |
|---|
JavaEnumImpl(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration body) |
| Modifier and Type | Method and Description |
|---|---|
EnumConstantSource |
addEnumConstant() |
EnumConstantSource |
addEnumConstant(String declaration) |
EnumConstantSource |
getEnumConstant(String name) |
List<EnumConstantSource> |
getEnumConstants() |
protected JavaEnumSource |
updateTypeNames(String newName)
Call-back to allow updating of any necessary internal names with the given name.
|
addField, addField, addInterface, addInterface, addInterface, addMethod, addMethod, getField, getFields, getInterfaces, getMembers, getMethod, getMethod, getMethod, getMethods, hasField, hasField, hasInterface, hasInterface, hasInterface, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeField, removeInterface, removeInterface, removeInterface, removeMethodaddAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, equals, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInternal, getName, getNestedClasses, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hashCode, hasImport, hasImport, hasImport, hasImport, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, removeAnnotation, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnclosingType, getNestedClassesgetCanonicalName, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterfacesetDefaultPackage, setPackagegetPackage, isDefaultPackageaddImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveTypesetNamesetPackagePrivate, setPrivate, setProtected, setPublic, setVisibilitygetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAnnotationhasAnnotation, hasAnnotationgetInternaladdInterface, addInterface, addInterface, removeInterface, removeInterface, removeInterfacegetInterfaces, hasInterface, hasInterface, hasInterfaceaddField, addField, getField, getFields, removeFieldhasField, hasFieldaddMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethodhasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignaturegetMemberspublic JavaEnumImpl(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration body)
public List<EnumConstantSource> getEnumConstants()
getEnumConstants in interface JavaEnum<JavaEnumSource>getEnumConstants in interface JavaEnumSourcepublic EnumConstantSource addEnumConstant()
addEnumConstant in interface JavaEnumSourcepublic EnumConstantSource addEnumConstant(String declaration)
addEnumConstant in interface JavaEnumSourcepublic EnumConstantSource getEnumConstant(String name)
getEnumConstant in interface JavaEnum<JavaEnumSource>getEnumConstant in interface JavaEnumSourceprotected JavaEnumSource updateTypeNames(String newName)
AbstractJavaSourceupdateTypeNames in class AbstractJavaSource<JavaEnumSource>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.