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

org.jvnet.annox.parser.value.XLongAnnotationValueParser Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package org.jvnet.annox.parser.value;

import org.jvnet.annox.model.annotation.value.XAnnotationValue;
import org.jvnet.annox.model.annotation.value.XLongAnnotationValue;
import org.jvnet.annox.parser.exception.ValueParseException;
import org.jvnet.annox.parser.java.visitor.ExpressionVisitor;
import org.jvnet.annox.parser.java.visitor.LongExpressionVisitor;

public class XLongAnnotationValueParser extends
		XAnnotationValueParser {

	@Override
	public XAnnotationValue parse(String value, Class type)
			throws ValueParseException {
		return construct(Long.valueOf(value), type);
	}

	@Override
	public XAnnotationValue construct(Long value, Class type) {
		return new XLongAnnotationValue(value);
	}

	@Override
	public ExpressionVisitor> createExpressionVisitor(
			Class type) {
		return new LongExpressionVisitor(type);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy