org.netbeans.modules.classfile/1 1.35

org.netbeans.modules.classfile
Class EnumElementValue

java.lang.Object
  extended by org.netbeans.modules.classfile.ElementValue
      extended by org.netbeans.modules.classfile.EnumElementValue

public final class EnumElementValue
extends ElementValue

EnumElementValue: a single annotation on a program element for those annotations that are enum constants.


Method Summary
 String getEnumName()
          Returns the name of the enum constant for this annotation component.
 String getEnumType()
          Returns the enum type as a string, rather than a ClassName.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEnumType

public final String getEnumType()
Returns the enum type as a string, rather than a ClassName. This is necessary because an enum may have a primitive type.


getEnumName

public final String getEnumName()
Returns the name of the enum constant for this annotation component.


toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.classfile/1 1.35

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.