congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AnnotationValue.asInt
Code IndexAdd Tabnine to your IDE (free)

How to use
asInt
method
in
org.jboss.jandex.AnnotationValue

Best Java code snippets using org.jboss.jandex.AnnotationValue.asInt (Showing top 19 results out of 315)

origin: wildfly/wildfly

public static int asOptionalInt(AnnotationInstance annotation, String string) {
  AnnotationValue value = annotation.value(string);
  return value == null ? -1 : value.asInt();
}
origin: wildfly/wildfly

public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) {
  AnnotationValue value = annotation.value(property);
  return value == null ? defaultValue : value.asInt();
}
origin: wildfly/wildfly

if (loadOnStartup != null && loadOnStartup.asInt() >= 0) {
  servlet.setLoadOnStartupInt(loadOnStartup.asInt());
if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
  multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
origin: wildfly/jandex

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;
}
origin: org.wildfly/wildfly-ee

public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) {
  AnnotationValue value = annotation.value(property);
  return value == null ? defaultValue : value.asInt();
}
origin: org.jboss.eap/wildfly-ee

public static int asOptionalInt(AnnotationInstance annotation, String string) {
  AnnotationValue value = annotation.value(string);
  return value == null ? -1 : value.asInt();
}
origin: org.jboss.eap/wildfly-ee

public static int asOptionalInt(AnnotationInstance annotation, String property, int defaultValue) {
  AnnotationValue value = annotation.value(property);
  return value == null ? defaultValue : value.asInt();
}
origin: org.jboss.as/jboss-as-connector

private int asInt(AnnotationInstance annotation, String string) {
  AnnotationValue value = annotation.value(string);
  return value == null ? -1 : value.asInt();
}
origin: org.wildfly/wildfly-ee

public static int asOptionalInt(AnnotationInstance annotation, String string) {
  AnnotationValue value = annotation.value(string);
  return value == null ? -1 : value.asInt();
}
origin: org.hibernate/com.springsource.org.hibernate.core

private int determineBatchSize() {
  final AnnotationInstance batchSizeAnnotation = JandexHelper.getSingleAnnotation(
      getClassInfo(), HibernateDotNames.BATCH_SIZE
  );
  return batchSizeAnnotation == null ? -1 : batchSizeAnnotation.value( "size" ).asInt();
}
origin: org.hibernate/com.springsource.org.hibernate

private int determineBatchSize() {
  final AnnotationInstance batchSizeAnnotation = JandexHelper.getSingleAnnotation(
      getClassInfo(), HibernateDotNames.BATCH_SIZE
  );
  return batchSizeAnnotation == null ? -1 : batchSizeAnnotation.value( "size" ).asInt();
}
origin: org.hibernate/com.springsource.org.hibernate.core

this.length = lengthValue.asInt();
this.precision = precisionValue.asInt();
this.scale = scaleValue.asInt();
origin: org.hibernate/com.springsource.org.hibernate

this.length = lengthValue.asInt();
this.precision = precisionValue.asInt();
this.scale = scaleValue.asInt();
origin: org.wildfly/wildfly-undertow

if (loadOnStartup != null && loadOnStartup.asInt() >= 0) {
  servlet.setLoadOnStartupInt(loadOnStartup.asInt());
if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
  multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
origin: org.jboss.eap/wildfly-undertow

if (loadOnStartup != null && loadOnStartup.asInt() >= 0) {
  servlet.setLoadOnStartupInt(loadOnStartup.asInt());
if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
  multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
origin: org.jboss.as/jboss-as-osgi-service

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());
origin: org.wildfly/wildfly-osgi-service

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());
origin: wildfly/jandex

} else if (value instanceof AnnotationValue.IntegerValue) {
  stream.writeByte(AVALUE_INT);
  stream.writePackedU32(value.asInt());
} else if (value instanceof AnnotationValue.CharacterValue) {
  stream.writeByte(AVALUE_CHAR);
origin: wildfly/jandex

} else if (value instanceof AnnotationValue.IntegerValue) {
  stream.writeByte(AVALUE_INT);
  stream.writePackedU32(value.asInt());
} else if (value instanceof AnnotationValue.CharacterValue) {
  stream.writeByte(AVALUE_CHAR);
org.jboss.jandexAnnotationValueasInt

Javadoc

Converts the underlying numerical type to an integer as if it was casted in Java.

Popular methods of AnnotationValue

  • asString
  • asBoolean
  • asNestedArray
  • asStringArray
  • asClass
  • value
  • asEnum
  • asClassArray
  • asLong
  • asEnumArray
  • asNested
  • toString
  • asNested,
  • toString,
  • createArrayValue,
  • createBooleanValue,
  • createClassValue,
  • createEnumValue,
  • createIntegerValue,
  • createNestedAnnotationValue,
  • createStringValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now