|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=SOURCE) public @interface StringDef
Defines a character string constant.
This annotation is used within a StringPool annotation to define
a single character string constant.
A character string constant can be defined in one of the two following ways:
@StringDef(name = "Hello", value = "Hello California!")
@StringDef(name = "S2", reference = "com.sun.jcclassic.samples.stringlib.LibStrings.Hello")
StringPool| Required Element Summary | |
|---|---|
java.lang.String |
name
The name of the defined string constant. |
| Optional Element Summary | |
|---|---|
java.lang.String |
reference
The fully-qualified name of the referenced string constant. |
java.lang.String |
value
The literal value of the defined string constant. |
| Element Detail |
|---|
public abstract java.lang.String name
public abstract java.lang.String value
This attribute is exclusive of the reference() attribute. The annotation
processor will fail with an error message if both the value()
and reference() attributes are defined.
public abstract java.lang.String reference
This attribute is exclusive of the value() attribute. The annotation
processor will fail with an error message if both the value()
and reference() attributes are defined.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||