站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

EnumElementValue (Classfile Reader) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.classfile/1 1.19

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.19

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.