class Pattern
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AnnotationBuilderMap |
builders
Stores the associated builders.
|
private java.lang.String |
pattern
Stores the name pattern.
|
private java.lang.String |
typeOf
Stores the type pattern, i.e. the matching type must be equal or a
subtype of
typeOf. |
| Constructor and Description |
|---|
Pattern(java.lang.String pattern,
java.lang.String typeOf)
Creates a new pattern.
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationBuilder<?> |
get(java.lang.Class<? extends java.lang.annotation.Annotation> cls)
Returns a builder for a given annotation.
|
java.lang.String |
getPattern()
Returns the pattern.
|
java.lang.String |
getTypeOf()
Returns the super type as restriction.
|
(package private) void |
register(java.lang.Class<? extends java.lang.annotation.Annotation> cls,
IAnnotationBuilder<?> builder)
Registers a builder.
|
java.lang.String |
toString()
Returns a textual representation of this object.
|
private java.lang.String pattern
private java.lang.String typeOf
typeOf.private AnnotationBuilderMap builders
public Pattern(java.lang.String pattern,
java.lang.String typeOf)
throws QdParserException
pattern - the pattern (may be null)typeOf - the supertype type restriction (may be null)QdParserException - in case that pattern is not validpublic IAnnotationBuilder<?> get(java.lang.Class<? extends java.lang.annotation.Annotation> cls)
cls - the annotation classvoid register(java.lang.Class<? extends java.lang.annotation.Annotation> cls,
IAnnotationBuilder<?> builder)
cls - the annotation class to register the builder forbuilder - the builderpublic java.lang.String getPattern()
public java.lang.String getTypeOf()
public java.lang.String toString()
toString in class java.lang.Object