org.codehaus.aspectwerkz.annotation
Class TypedAnnotationProxy

java.lang.Object
  extended byorg.codehaus.aspectwerkz.annotation.TypedAnnotationProxy
All Implemented Interfaces:
Annotation, Serializable

public abstract class TypedAnnotationProxy
extends Object
implements Annotation, Serializable

The base class for the typed annotation proxies.

Author:
Jonas Bonér
See Also:
Serialized Form

Field Summary
protected  String m_name
          The name of the annotation.
protected static AnnotationParser PARSER
          The one and only annotation parser.
 
Constructor Summary
TypedAnnotationProxy()
           
 
Method Summary
 String getName()
          Returns the name.
 void initialize(String name, String value)
          Sets the full value of the annotation (including possible named parameters etc.)
 boolean isTyped()
          Checks if the annotation is typed or not.
 void setName(String name)
          Sets the name of the annotation, the '@[name]'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER

protected static final AnnotationParser PARSER
The one and only annotation parser.


m_name

protected String m_name
The name of the annotation.

Constructor Detail

TypedAnnotationProxy

public TypedAnnotationProxy()
Method Detail

getName

public String getName()
Returns the name.

Specified by:
getName in interface Annotation
Returns:
the name

setName

public void setName(String name)
Sets the name of the annotation, the '@[name]'.

Specified by:
setName in interface Annotation
Parameters:
name -

initialize

public void initialize(String name,
                       String value)
Sets the full value of the annotation (including possible named parameters etc.) as @Foo(x=3 ...).

Specified by:
initialize in interface Annotation
Parameters:
name - the name of the annotation FQN with package name etc
value - the key/value pairs separated with commas (key1=value1, key2=value2, ...)

isTyped

public boolean isTyped()
Checks if the annotation is typed or not.

Specified by:
isTyped in interface Annotation
Returns:
boolean


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.