@Override public Stream<IMemberValuePair> getMemberValuePairs() { return annotation.values().stream().map(av -> { return Wrappers.wrap(av); }); }
List<AnnotationValue> values = instance.values(); if (values.size() < 1) continue;
AnnotationValue cascadeValue = annotationInstance.value( "cascade" ); List<AnnotationValue> newAnnotationValueList = new ArrayList<AnnotationValue>(); newAnnotationValueList.addAll( annotationInstance.values() ); if ( cascadeValue == null ) { AnnotationValue temp = AnnotationValue.createEnumValue( "", JPADotNames.CASCADE_TYPE, "PERSIST" );
AnnotationValue cascadeValue = annotationInstance.value( "cascade" ); List<AnnotationValue> newAnnotationValueList = new ArrayList<AnnotationValue>(); newAnnotationValueList.addAll( annotationInstance.values() ); if ( cascadeValue == null ) { AnnotationValue temp = AnnotationValue.createEnumValue( "", JPADotNames.CASCADE_TYPE, "PERSIST" );
private void writeAnnotation(PackedDataOutputStream stream, AnnotationInstance instance) throws IOException { stream.writePackedU32(positionOf(instance.name())); AnnotationTarget target = instance.target(); writeAnnotationTarget(stream, target); writeAnnotationValues(stream, instance.values()); }
private void addAnnotation(AnnotationInstance instance) { addClassName(instance.name()); for (AnnotationValue value : instance.values()) { buildAValueEntries(value); } addAnnotationTarget(instance.target()); annotationTable.addReference(instance); }
private AnnotationInstance overrideSchemaCatalogByDefault(AnnotationInstance annotationInstance, EntityMappingsMocker.Default defaults) { List<AnnotationValue> newAnnotationValueList = new ArrayList<AnnotationValue>(); newAnnotationValueList.addAll( annotationInstance.values() ); boolean schemaDefined = false; boolean catalogDefined = false;
private AnnotationInstance overrideSchemaCatalogByDefault(AnnotationInstance annotationInstance, EntityMappingsMocker.Default defaults) { List<AnnotationValue> newAnnotationValueList = new ArrayList<AnnotationValue>(); newAnnotationValueList.addAll( annotationInstance.values() ); boolean schemaDefined = false; boolean catalogDefined = false;
private void buildAValueEntries(Index index, AnnotationValue value) { intern(value.name()); if (value instanceof AnnotationValue.StringValue) { intern(value.asString()); } else if (value instanceof AnnotationValue.ClassValue) { addClassName(value.asClass().name()); } else if (value instanceof AnnotationValue.EnumValue) { addClassName(value.asEnumType()); intern(value.asEnum()); } else if (value instanceof AnnotationValue.ArrayValue) { for (AnnotationValue entry : value.asArray()) buildAValueEntries(index, entry); } else if (value instanceof AnnotationValue.NestedAnnotation) { AnnotationInstance instance = value.asNested(); Collection<AnnotationValue> values = instance.values(); addClassName(instance.name()); for (AnnotationValue entry : values) { buildAValueEntries(index, entry); } } }
for (AnnotationValue value : instance.values()) buildAValueEntries(index, value);
} else throw new IllegalStateException("Unknown target"); Collection<AnnotationValue> values = instance.values(); writeAnnotationValues(stream, values);
Collection<AnnotationValue> values = instance.values();