Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


javax.ide.model.java.source.tree
Interface EnumConstantT

All Superinterfaces:
HasModifiersT, HasNameT, MemberT, MemberVariableT, Tree, VariableT

public interface EnumConstantT
extends MemberVariableT

A field (or enum constant) variable.


Field Summary

 

Fields inherited from interface javax.ide.model.java.source.tree.MemberVariableT
EMPTY_ARRAY

 

Method Summary
 ClassT getAnonymousClass()
          Gets the anonymous class if one was defined.
 ListExpressionT getArguments()
          Gets the constructor invocation arguments if this is an enum constant.
 void setAnonymousClass(ClassT anonymousClass)
          Attempts to set the anonymous class.
 void setArguments(ListExpressionT arguments)
          Attempts to set the argument list.

 

Methods inherited from interface javax.ide.model.java.source.tree.MemberT
getBlock, getDeclaringClass, getDocComment, setBlock, setDocComment

 

Methods inherited from interface javax.ide.model.java.source.tree.VariableT
getInitializer, getOwningDeclaration, getType, setInitializer, setType

 

Methods inherited from interface javax.ide.model.java.source.tree.HasModifiersT
addModifiers, getAnnotations, getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictfp, removeModifiers, setModifiers

 

Methods inherited from interface javax.ide.model.java.source.tree.HasNameT
getName, getNameElement, setName, setNameElement

 

Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty

 

Method Detail

getArguments

ListExpressionT getArguments()
Gets the constructor invocation arguments if this is an enum constant.

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(ListExpressionT arguments)
Attempts to set the argument list.

getAnonymousClass

ClassT getAnonymousClass()
Gets the anonymous class if one was defined.
Returns:
Gets the anonymous class defined for this enum constant, null if none, null if not an enum constant.

setAnonymousClass

void setAnonymousClass(ClassT anonymousClass)
Attempts to set the anonymous class.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.