487488489490491492493494495496497
public <T extends Annotation> T resolveTypedAnnotation(Field f, Class<T> annotation) { T value = null; if (metadata != null) { FieldSignature signature = new FieldSignature(f); MetaData fieldMD = metadata.getComponentMetaData(signature); if (fieldMD != null) { value = fieldMD.getAnnotation(annotation); if (value != null) return value;
586587588589590591592593594595596
public boolean hasAnnotation(Field m, String annotation) { if (metadata != null) { if (hasJoinPointAnnotation(m.getDeclaringClass(), new FieldSignature(m), annotation)) { return true; } } if (annotations.hasAnnotation(m, annotation)) return true;
96979899100101102
return new MethodSignature(getMethodInfo()); } protected FieldSignature getStringFieldSignature() { return new FieldSignature("calendar"); }
101102103104105106107
return new FieldSignature("calendar"); } protected FieldSignature getFieldSignature() throws Exception { return new FieldSignature(getField()); }
106107108109110111112
return new FieldSignature(getField()); } protected FieldSignature getFieldInfoSignature() { return new FieldSignature(getFieldInfo()); }
6162636465666768
protected abstract MetaData setupConstructorParams(); public void testFieldEmpty() throws Exception { MetaData metaData = setupField(); metaData = metaData.getComponentMetaData(new FieldSignature("empty")); testEmpty(metaData); }
106107108109110111112113
} public void testFieldTestAnnotation() throws Exception { MetaData metaData = setupField(); metaData = metaData.getComponentMetaData(new FieldSignature("testAnnotation")); testTestAnnotation(metaData); }
154155156157158159160161
} public void testFieldTestAnnotation12() throws Exception { MetaData metaData = setupField(); metaData = metaData.getComponentMetaData(new FieldSignature("testAnnotation12")); testTestAnnotation12(metaData); }
110111112113114115116117
MethodInfo mi = getMethodInfo(); Signature sm = new MethodSignature(m); checkAnnotationCycle(sm, m, mi); Field f = getField(); FieldInfo fi = getFieldInfo(); Signature sf = new FieldSignature(f); checkAnnotationCycle(sf, f, fi); }
138139140141142143144145
MethodInfo mi = getMethodInfo(); Signature sm = new MethodSignature(m); checkMetaDataCycle(sm, m, mi); Field f = getField(); FieldInfo fi = getFieldInfo(); Signature sf = new FieldSignature(f); checkMetaDataCycle(sf, f, fi); }