/** * This annotation's type. */ public void setType(Class type) { setType(type.getName()); }
/** * This annotation's type. */ public void setType(Class type) { setType(type.getName()); }
/** * Add a new annotation. */ public Annotation addAnnotation(String type) { Annotation anno = new Annotation(this); anno.setType(type); _annotations.add(anno); return anno; }
/** * Add a new annotation. */ public Annotation addAnnotation(String type) { Annotation anno = new Annotation(this); anno.setType(type); _annotations.add(anno); return anno; }
/** * This annotation's type. */ public void setType(BCClass type) { setType(type.getName()); }
/** * This annotation's type. */ public void setType(BCClass type) { setType(type.getName()); }
/** * Set this property value to a new annotation of the given type, * returning the annotation for manipulation. */ public Annotation newAnnotationValue(String type) { Annotation anno = new Annotation(this); anno.setType(type); _values = null; _value.index = -1; _value.index2 = -1; _value.value = anno; _value.type = null; return anno; }
/** * Set this property value to a new annotation of the given type, * returning the annotation for manipulation. */ public Annotation newAnnotationValue(String type) { Annotation anno = new Annotation(this); anno.setType(type); _values = null; _value.index = -1; _value.index2 = -1; _value.value = anno; _value.type = null; return anno; }
/** * Set this property value to a new annotation array of the given type * and length, returning the annotations for manipulation. */ public Annotation[] newAnnotationArrayValue(String type, int length) { _value.value = null; _values = new Value[length]; Annotation[] ret = new Annotation[length]; for (int i = 0; i < length; i++) { ret[i] = new Annotation(this); ret[i].setType(type); _values[i] = new Value(); _values[i].index = -1; _values[i].index2 = -1; _values[i].value = ret[i]; _values[i].type = null; } return ret; }
/** * Set this property value to a new annotation array of the given type * and length, returning the annotations for manipulation. */ public Annotation[] newAnnotationArrayValue(String type, int length) { _value.value = null; _values = new Value[length]; Annotation[] ret = new Annotation[length]; for (int i = 0; i < length; i++) { ret[i] = new Annotation(this); ret[i].setType(type); _values[i] = new Value(); _values[i].index = -1; _values[i].index2 = -1; _values[i].value = ret[i]; _values[i].type = null; } return ret; }
/** * Set the annotation value of this property by importing the given * annotation from another instance. */ private Annotation setValue(Value val, Annotation o) { Annotation anno = new Annotation(this); anno.setType(o.getTypeName()); anno.setProperties(o.getProperties()); val.index = -1; val.index2 = -1; val.value = anno; val.type = null; return anno; }
/** * Set the annotation value of this property by importing the given * annotation from another instance. */ private Annotation setValue(Value val, Annotation o) { Annotation anno = new Annotation(this); anno.setType(o.getTypeName()); anno.setProperties(o.getProperties()); val.index = -1; val.index2 = -1; val.value = anno; val.type = null; return anno; }