org.jruby.ast.java_signature.ArrayAnnotationExpression Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jruby.ast.java_signature;
import java.util.List;
/**
*
* @author enebo
*/
public class ArrayAnnotationExpression implements AnnotationExpression {
private List expressions;
public ArrayAnnotationExpression(List expressions) {
this.expressions = expressions;
}
@Override
public String toString() {
int length = expressions.size();
StringBuilder buf = new StringBuilder("{");
if (length == 0) return buf.append("}").toString();
for (int i = 0; i < length - 1; i++) {
buf.append(expressions.get(i)).append(", ");
}
buf.append(expressions.get(length - 1)).append("}");
return buf.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy