public static class Name.Literal extends java.lang.Object implements Name
Name
annotation.Name.Literal
Constructor and Description |
---|
Literal(java.lang.String sName,
boolean fRegex)
Construct
Name.Literal instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType()
Method returns the type of the annotation literal.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
static Name.Literal |
of(java.lang.String sName)
Create a
Name.Literal . |
boolean |
regex()
Return
true to indicate whether name is a regular expression. |
java.lang.String |
value()
The name used to identify a specific resource.
|
public Literal(java.lang.String sName, boolean fRegex)
Name.Literal
instance.sName
- the resource namefRegex
- true
to indicate whether name is a regular expressionpublic static Name.Literal of(java.lang.String sName)
Name.Literal
.sName
- the resource nameName.Literal
with the specified valuepublic java.lang.String value()
public boolean regex()
true
to indicate whether name is a regular expression.true
to indicate whether name is a regular expressionpublic java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType
in interface java.lang.annotation.Annotation
public boolean equals(java.lang.Object other)
equals
in interface java.lang.annotation.Annotation
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.lang.annotation.Annotation
hashCode
in class java.lang.Object