Example usage for org.eclipse.jdt.core.dom MarkerAnnotation TYPE_NAME_PROPERTY

List of usage examples for org.eclipse.jdt.core.dom MarkerAnnotation TYPE_NAME_PROPERTY

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom MarkerAnnotation TYPE_NAME_PROPERTY.

Prototype

ChildPropertyDescriptor TYPE_NAME_PROPERTY

To view the source code for org.eclipse.jdt.core.dom MarkerAnnotation TYPE_NAME_PROPERTY.

Click Source Link

Document

The "typeName" structural property of this node type (child type: Name ).

Usage

From source file:org.moe.natjgen.EditContext.java

License:Apache License

protected void setAnnotationName(Annotation annotation, String[] type) throws GeneratorException {
    if (annotation.isNormalAnnotation()) {
        setAnnotationName(annotation, NormalAnnotation.TYPE_NAME_PROPERTY, type);
    } else if (annotation.isSingleMemberAnnotation()) {
        setAnnotationName(annotation, SingleMemberAnnotation.TYPE_NAME_PROPERTY, type);
    } else if (annotation.isMarkerAnnotation()) {
        setAnnotationName(annotation, MarkerAnnotation.TYPE_NAME_PROPERTY, type);
    }/*from   w ww . j  a  v a  2  s.  c om*/
}