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

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

org.netbeans.modules.classfile/1 1.19

org.netbeans.modules.classfile
Class Annotation

java.lang.Object
  extended by org.netbeans.modules.classfile.Annotation

public class Annotation
extends Object

Annotation: a single annotation on a program element.


Method Summary
 AnnotationComponent getComponent(String name)
          Returns the named component for this annotation, or null if no component with that name exists.
 AnnotationComponent[] getComponents()
          Returns the named components for this annotation, as an array of AnnotationComponents.
 ClassName getType()
          Returns the annotation type.
 boolean isRuntimeVisible()
          Returns true if this annotation is loaded by the Java Virtual Machine to be available via the Java reflection facility.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public final ClassName getType()
Returns the annotation type.


getComponents

public final AnnotationComponent[] getComponents()
Returns the named components for this annotation, as an array of AnnotationComponents.


getComponent

public final AnnotationComponent getComponent(String name)
Returns the named component for this annotation, or null if no component with that name exists.


isRuntimeVisible

public boolean isRuntimeVisible()
Returns true if this annotation is loaded by the Java Virtual Machine to be available via the Java reflection facility.


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.