Top Fields Constructors Methods
org.jruby.ast.java_signature

public Class Annotation

extends Object
implements AnnotationExpression
Class Inheritance
All Implemented Interfaces
org.jruby.ast.java_signature.AnnotationExpression
Imports
java.util.List

Field Summary

Modifier and TypeField and Description
private final String
private final List<AnnotationParameter>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(AnnotationVisitor<T>
the visitor
visitor
)

Implements org.jruby.ast.java_signature.AnnotationExpression.accept.

Accept for the visitor pattern.

public String
public List<AnnotationParameter>
public boolean
isAnnotation()

modifiers and annotations can be mixed together in java signatures.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private final String name
parametersback to summary
private final List<AnnotationParameter> parameters

Constructor Detail

Annotationback to summary
public Annotation(String name, List<AnnotationParameter> parameters)

Method Detail

acceptback to summary
public <T> T accept(AnnotationVisitor<T> visitor)

Implements org.jruby.ast.java_signature.AnnotationExpression.accept.

Accept for the visitor pattern.

Parameters
visitor:AnnotationVisitor<T>

the visitor

Annotations
@Override
getNameback to summary
public String getName()
getParametersback to summary
public List<AnnotationParameter> getParameters()
isAnnotationback to summary
public boolean isAnnotation()

modifiers and annotations can be mixed together in java signatures.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
toStringParametersback to summary
public String toStringParameters()