Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


RetentionPolicyjava.lang.annotation

Java 5.0serializable comparable enum

The


constants
declared by the enumerated type specify the possible retention values
for an @Retention meta-annotation. Annotations
with SOURCE retention appear in Java source code
only and are discarded by the compiler. Annotations with
CLASS retention are compiled into the class file
and are visible to tools that read class files but are not loaded by
the Java VM at runtime. (This is the default retention for annotation
types that do not have an @Retention
meta-annotation.) Finally, annotations with
RUNTIME retention are stored in the class file and
loaded by the Java interpreter at runtime. These annotations are
available for reflective access through
java.lang.reflect.AnnotatedElement.


Figure 10-81. java.lang.annotation.RetentionPolicy

public enum

RetentionPolicy {
// Enumerated Constants

SOURCE ,

CLASS ,

RUNTIME ;
// Public Class Methods
public static RetentionPolicy

valueOf (String

name );
public static final RetentionPolicy[ ]

values ( );
}


Returned By


Retention.value( )


    / 1191