Skip navigation links 
 
oracle.javatools.parser.java.v2.model
Interface SourceEnumConstant
- All Superinterfaces:
 
- Element, JavaElement, JavaField, JavaHasAnnotations, JavaHasName, JavaHasType, JavaMember, JavaVariable, SourceElement, SourceHasModifiers, SourceHasName, SourceHasType, SourceMember, SourceMemberVariable, SourceVariable
 
- 
public interface SourceEnumConstant
 
- extends SourceMemberVariable
 
An enum constant.
 
 
 
 
  
 
 
 
 
 
 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement | 
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf | 
 
 
 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasName | 
getName | 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement | 
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo | 
 
 
getArguments
SourceListExpression getArguments()
- Gets the constructor invocation arguments, null if none.
If no arguments were declared, then null will be returned. If this were to return a skeleton (placeholder) argument list, then there would be no way to either force the empty argument list to be shown or hidden. Therefore, this does not return a skeleton (placeholder) argument list.
 
- 
- Returns:
 
- Gets the argument list defined on this enum constant, null if none.
 
 
setArguments
void setArguments(SourceListExpression arguments)
- Attempts to set the argument list.
 
getAnonymousClass
SourceClass getAnonymousClass()
- Gets the anonymous class if one was defined.
 
- 
- Returns:
 
- Gets the anonymous class defined for this enum constant, null if none.
 
 
setAnonymousClass
void setAnonymousClass(SourceClass anonymousClass)
- Attempts to set the anonymous class.
 
Skip navigation links 
 
Copyright © 1997, 2012, Oracle. All rights reserved.