All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ast.java_signature.AnnotationParameter Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jruby.ast.java_signature;

/**
 *
 * 
 * 
 * @author enebo
 */
// @Foo(@bar)         DEFAULT for single value anno
// @Foo(value=@bar)   ANNO
// @Foo(value={@bar}) LIST
// @Foo(value="heh")  EXPR
public class AnnotationParameter {
    private String name;
    private AnnotationExpression expression;
    
    public AnnotationParameter(String name, AnnotationExpression value) {
        this.name = name;
        this.expression = value;
    }
    
    public AnnotationExpression getExpression() {
        return expression;
    }
    
    @Override
    public String toString() {
        return "" + name + "=" + expression;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy