public interface

IJavaAnnotation

implements IJavaExpression
com.pnfsoftware.jeb.core.units.code.java.IJavaAnnotation

Class Overview

Java AST interface to represent a Java annotation.

Example:

 @SomeAnnotation(...)
 

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaAnnotation duplicate()
Duplicate this element.
abstract void generate(JavaOutputSink out, char charAfterAnno)
Custom generator.
abstract List<IJavaAnnotationElement> getElements()
Get the elements of this annotation.
abstract IJavaType getType()
Get the annotation type.
abstract void setType(IJavaType type)
Set or update the annotation type.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaExpression

Public Methods

public abstract IJavaAnnotation duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

public abstract void generate (JavaOutputSink out, char charAfterAnno)

Custom generator.

Parameters
out output sink
charAfterAnno a character to be appended after the annotation; 0 if none

public abstract List<IJavaAnnotationElement> getElements ()

Get the elements of this annotation. The actual list is returned and may be modified.

public abstract IJavaType getType ()

Get the annotation type.

public abstract void setType (IJavaType type)

Set or update the annotation type.