public class JavaEnumImpl extends AbstractJavaSourceMemberHolder<JavaEnum> implements JavaEnum
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 |
|---|---|
EnumConstant<JavaEnum> |
addEnumConstant() |
EnumConstant<JavaEnum> |
addEnumConstant(String declaration) |
EnumConstant<JavaEnum> |
getEnumConstant(String name) |
List<EnumConstant<JavaEnum>> |
getEnumConstants() |
SourceType |
getSourceType() |
protected JavaEnum |
updateTypeNames(String newName)
Call-back to allow updating of any necessary internal names with the given name.
|
addField, addField, addMethod, addMethod, getField, getFields, getMembers, getMethod, getMethod, getMethod, getMethods, hasField, hasField, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeField, removeMethodaddAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, addInterface, addInterface, addInterface, equals, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInterfaces, getInternal, getName, getNestedClasses, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hashCode, hasImport, hasImport, hasImport, hasImport, hasInterface, hasInterface, hasInterface, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, removeAnnotation, removeImport, removeImport, removeImport, removeImport, removeInterface, removeInterface, removeInterface, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCanonicalName, getEnclosingType, getNestedClasses, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterfacegetPackage, isDefaultPackage, setDefaultPackage, setPackageaddImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveTypegetVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibilityaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotationgetInternaladdInterface, addInterface, addInterface, getInterfaces, hasInterface, hasInterface, hasInterface, removeInterface, removeInterface, removeInterfaceaddField, addField, getField, getFields, hasField, hasField, removeFieldaddMethod, addMethod, getMethod, getMethod, getMethod, getMethods, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeMethodgetMemberspublic 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<EnumConstant<JavaEnum>> getEnumConstants()
getEnumConstants in interface JavaEnumpublic EnumConstant<JavaEnum> addEnumConstant()
addEnumConstant in interface JavaEnumpublic EnumConstant<JavaEnum> addEnumConstant(String declaration)
addEnumConstant in interface JavaEnumpublic EnumConstant<JavaEnum> getEnumConstant(String name)
getEnumConstant in interface JavaEnumprotected JavaEnum updateTypeNames(String newName)
AbstractJavaSourceupdateTypeNames in class AbstractJavaSource<JavaEnum>public SourceType getSourceType()
getSourceType in interface JavaSource<JavaEnum>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.