public class SimpleGroovyAnnotationRef
extends Object
implements GroovyAnnotationRef
Default GroovyAnnotationRef implementation backed by parsed source text.
| Constructor and description |
|---|
SimpleGroovyAnnotationRef(String name, String desc)Creates an annotation reference from its simple name and raw source description. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
description()The string representation of the annotation reference. Initially implemented as a temporary hack stored from the source. To be replaced with strong-typed finer grained information.
|
|
public boolean |
isTypeAvailable()Indicates whether the annotation type has been resolved. |
|
public String |
name()Name of the annotation being referenced. Once resolved, equates to type().typeName().
|
|
public void |
setName(String name)Replaces the annotation name used by this reference. |
|
public void |
setType(GroovyClassDoc type)Associates the resolved annotation type with this reference. |
|
public GroovyClassDoc |
type()The annotation being referenced.
|
The string representation of the annotation reference. Initially implemented as a temporary hack stored from the source. To be replaced with strong-typed finer grained information.
Indicates whether the annotation type has been resolved.
true if the annotation type is available Name of the annotation being referenced. Once resolved,
equates to type().typeName().
Replaces the annotation name used by this reference.
name - the annotation name to storeAssociates the resolved annotation type with this reference.
type - the resolved annotation typeThe annotation being referenced.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.