ua.gradsoft.javachecker.models
Class JavaClassAnnotationInstanceModel

java.lang.Object
  extended by ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
      extended by ua.gradsoft.javachecker.models.JavaClassAnnotationInstanceModel

public class JavaClassAnnotationInstanceModel
extends JavaAnnotationInstanceModel

Model for annotation instance, based on reflection API


Field Summary
 
Fields inherited from class ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
elementType_, target_
 
Constructor Summary
JavaClassAnnotationInstanceModel(java.lang.annotation.ElementType et, java.lang.annotation.Annotation a, java.lang.Object o)
          Creates a new instance of JavaClassAnnotationInstanceModel
 
Method Summary
 JavaTypeModel getAnnotationModel()
           
 JavaExpressionModel getElement(java.lang.String elementName)
          expression, which is defined in annotations.
 java.util.Map<java.lang.String,JavaExpressionModel> getElements()
          Map, which contains declared fields.
 Term getModelTerm()
          ClassAnnotationInstanceModel(this)
 boolean hasElement(java.lang.String elementName)
          true, if element whith name elementName is provided in this annotation
 
Methods inherited from class ua.gradsoft.javachecker.models.JavaAnnotationInstanceModel
getRetentionPolicy, getTargetAnnotationTypeModel, getTargetConstructorModel, getTargetElementType, getTargetFieldModel, getTargetFormalParameterModel, getTargetLocalVariableModel, getTargetMethodModel, getTargetTypeModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaClassAnnotationInstanceModel

public JavaClassAnnotationInstanceModel(java.lang.annotation.ElementType et,
                                        java.lang.annotation.Annotation a,
                                        java.lang.Object o)
Creates a new instance of JavaClassAnnotationInstanceModel

Method Detail

getAnnotationModel

public JavaTypeModel getAnnotationModel()
                                 throws TermWareException
Specified by:
getAnnotationModel in class JavaAnnotationInstanceModel
Throws:
TermWareException

hasElement

public boolean hasElement(java.lang.String elementName)
Description copied from class: JavaAnnotationInstanceModel
true, if element whith name elementName is provided in this annotation

Specified by:
hasElement in class JavaAnnotationInstanceModel

getElement

public JavaExpressionModel getElement(java.lang.String elementName)
                               throws NotSupportedException,
                                      TermWareException
Description copied from class: JavaAnnotationInstanceModel
expression, which is defined in annotations.

Specified by:
getElement in class JavaAnnotationInstanceModel
Throws:
NotSupportedException
TermWareException

getElements

public java.util.Map<java.lang.String,JavaExpressionModel> getElements()
                                                                throws TermWareException
Description copied from class: JavaAnnotationInstanceModel
Map, which contains declared fields.

Specified by:
getElements in class JavaAnnotationInstanceModel
Throws:
TermWareException

getModelTerm

public Term getModelTerm()
                  throws TermWareException
ClassAnnotationInstanceModel(this)

Specified by:
getModelTerm in class JavaAnnotationInstanceModel
Throws:
TermWareException