com.googlecode.lightest.core.filter
Class AnnotationField

java.lang.Object
  extended by com.googlecode.lightest.core.filter.AnnotationField
All Implemented Interfaces:
groovy.lang.GroovyObject

public class AnnotationField
extends Object
implements groovy.lang.GroovyObject

Identifies an annotation field by name, or name and member, where the member is an attribute of the annotation. For example, for the annotation "@Test(groups = [ 'foo', 'bar' ])", the name is "Test" and the member is "groups".


Constructor Summary
AnnotationField(String name)
           
AnnotationField(String name, String member)
           
 
Method Summary
 String getMember()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMember(String value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setName(String value)
           
 void setProperty(String name, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationField

public AnnotationField(String name)

AnnotationField

public AnnotationField(String name,
                       String member)
Method Detail

getName

public String getName()

setName

public void setName(String value)

getMember

public String getMember()

setMember

public void setMember(String value)

toString

public String toString()
Overrides:
toString in class Object

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2009. All Rights Reserved.