![JAR search and dependency download from the Maven repository](/logo.png)
com.avaje.ebean.enhance.agent.AnnotationInfo Maven / Gradle / Ivy
package com.avaje.ebean.enhance.agent;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Collects the annotation information.
*/
public class AnnotationInfo {
private final HashMap valueMap = new HashMap();
private AnnotationInfo parent;
/**
* The parent is typically the class level annotation information
* which could be considered to hold default values.
*/
public AnnotationInfo(AnnotationInfo parent){
this.parent = parent;
}
public String toString() {
return valueMap.toString();
}
public AnnotationInfo getParent() {
return parent;
}
public void setParent(AnnotationInfo parent) {
this.parent = parent;
}
/**
* Add a annotation value.
*/
@SuppressWarnings("unchecked")
public void add(String prefix, String name, Object value){
if (name == null){
// this is an array value...
ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy