public static int asOptionalInt(AnnotationInstance annotation, String string) { AnnotationValue value = annotation.value(string); return value == null ? -1 : value.asInt(); }
public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) { AnnotationValue value = annotation.value(property); return value == null ? defaultValue : value.asInt(); }
public int[] asIntArray() { int length = value.length; int[] array = new int[length]; for (int i = 0; i < length; i++) { array[i] = value[i].asInt(); } return array; }
public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) { AnnotationValue value = annotation.value(property); return value == null ? defaultValue : value.asInt(); }
public static int asOptionalInt(AnnotationInstance annotation, String string) { AnnotationValue value = annotation.value(string); return value == null ? -1 : value.asInt(); }
public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) { AnnotationValue value = annotation.value(property); return value == null ? defaultValue : value.asInt(); }
private int asInt(AnnotationInstance annotation, String string) { AnnotationValue value = annotation.value(string); return value == null ? -1 : value.asInt(); }
public static int asOptionalInt(AnnotationInstance annotation, String string) { AnnotationValue value = annotation.value(string); return value == null ? -1 : value.asInt(); }
private int determineBatchSize() { final AnnotationInstance batchSizeAnnotation = JandexHelper.getSingleAnnotation( getClassInfo(), HibernateDotNames.BATCH_SIZE ); return batchSizeAnnotation == null ? -1 : batchSizeAnnotation.value( "size" ).asInt(); }
private int determineBatchSize() { final AnnotationInstance batchSizeAnnotation = JandexHelper.getSingleAnnotation( getClassInfo(), HibernateDotNames.BATCH_SIZE ); return batchSizeAnnotation == null ? -1 : batchSizeAnnotation.value( "size" ).asInt(); }
Object deploymentName = namevalue != null ? namevalue.value() : null; if (slTarget == anDeployment.target() && depUnit.getName().equals(deploymentName)) { int startLevel = slAware.value("startLevel").asInt(); deployment.setStartLevel(startLevel); deployment.setAutoStart(false); deployment.setStartLevel(value.asInt());
Object deploymentName = namevalue != null ? namevalue.value() : null; if (slTarget == anDeployment.target() && depUnit.getName().equals(deploymentName)) { int startLevel = slAware.value("startLevel").asInt(); deployment.setStartLevel(startLevel); deployment.setAutoStart(false); deployment.setStartLevel(value.asInt());
} else if (value instanceof AnnotationValue.IntegerValue) { stream.writeByte(AVALUE_INT); stream.writePackedU32(value.asInt()); } else if (value instanceof AnnotationValue.CharacterValue) { stream.writeByte(AVALUE_CHAR);
} else if (value instanceof AnnotationValue.IntegerValue) { stream.writeByte(AVALUE_INT); stream.writePackedU32(value.asInt()); } else if (value instanceof AnnotationValue.CharacterValue) { stream.writeByte(AVALUE_CHAR);