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

How to use
MethodParameterInfo
in
org.jboss.jandex

Best Java code snippets using org.jboss.jandex.MethodParameterInfo (Showing top 14 results out of 315)

origin: wildfly/wildfly

private ClassInfo getAnnotationClass(final AnnotationTarget annotationTarget) {
  if (annotationTarget instanceof ClassInfo) {
    return (ClassInfo) annotationTarget;
  } else if (annotationTarget instanceof MethodInfo) {
    return ((MethodInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof FieldInfo) {
    return ((FieldInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof MethodParameterInfo) {
    return ((MethodParameterInfo) annotationTarget).method().declaringClass();
  } else {
    throw EeLogger.ROOT_LOGGER.unknownAnnotationTargetType(annotationTarget);
  }
}
origin: wildfly/jandex

} else if (target instanceof MethodParameterInfo) {
  MethodParameterInfo param = (MethodParameterInfo) target;
  MethodInfo method = param.method();
  stream.writeByte(METHOD_PARAMATER_TAG);
  stream.writePackedU32(positionOf(method.name()));
  stream.writePackedU32(param.position());
} else if (target instanceof ClassInfo) {
  stream.writeByte(CLASS_TAG);
origin: wildfly/jandex

/**
 * Constructs a new mock method parameter info
 *
 * @param method the method containing this parameter.
 * @param parameter the zero based index of this parameter
 * @return the new mock parameter info
 */
public static MethodParameterInfo create(MethodInfo method, short parameter)
{
  return new MethodParameterInfo(method, parameter);
}
origin: wildfly/jandex

private void writeAnnotationTarget(PackedDataOutputStream stream, AnnotationTarget target) throws IOException {
  if (target instanceof FieldInfo) {
    stream.writeByte(FIELD_TAG);
  } else if (target instanceof MethodInfo) {
    stream.writeByte(METHOD_TAG);
  } else if (target instanceof MethodParameterInfo) {
    MethodParameterInfo param = (MethodParameterInfo) target;
    stream.writeByte(METHOD_PARAMATER_TAG);
    stream.writePackedU32(param.position());
  } else if (target instanceof ClassInfo) {
    stream.writeByte(CLASS_TAG);
  } else if (target instanceof TypeTarget) {
    writeTypeTarget(stream, (TypeTarget)target);
  } else if (target == null) {
    stream.writeByte(NULL_TARGET_TAG);
  } else {
    throw new IllegalStateException("Unknown target");
  }
}
origin: wildfly/jandex

int numParameters = data.readUnsignedByte();
for (short p = 0; p < numParameters; p++) {
  processAnnotations(data, new MethodParameterInfo((MethodInfo) target, p));
origin: wildfly/wildfly

  classes.add(((MethodInfo) annotationTarget).declaringClass());
} else if (annotationTarget instanceof MethodParameterInfo) {
  classes.add(((MethodParameterInfo) annotationTarget).method().declaringClass());
origin: wildfly/jandex

target = new MethodParameterInfo(method, (short)stream.readPackedU32());
break;
origin: org.jboss.eap/wildfly-ee

private ClassInfo getAnnotationClass(final AnnotationTarget annotationTarget) {
  if (annotationTarget instanceof ClassInfo) {
    return (ClassInfo) annotationTarget;
  } else if (annotationTarget instanceof MethodInfo) {
    return ((MethodInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof FieldInfo) {
    return ((FieldInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof MethodParameterInfo) {
    return ((MethodParameterInfo) annotationTarget).method().declaringClass();
  } else {
    throw EeLogger.ROOT_LOGGER.unknownAnnotationTargetType(annotationTarget);
  }
}
origin: wildfly/jandex

case METHOD_PARAMATER_TAG: {
  short parameter = (short)stream.readPackedU32();
  return new MethodParameterInfo((MethodInfo)caller, parameter);
origin: org.jboss.as/jboss-as-ee

private ClassInfo getAnnotationClass(final AnnotationTarget annotationTarget) {
  if (annotationTarget instanceof ClassInfo) {
    return (ClassInfo) annotationTarget;
  } else if (annotationTarget instanceof MethodInfo) {
    return ((MethodInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof FieldInfo) {
    return ((FieldInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof MethodParameterInfo) {
    return ((MethodParameterInfo) annotationTarget).method().declaringClass();
  } else {
    throw MESSAGES.unknownAnnotationTargetType(annotationTarget);
  }
}
origin: org.wildfly/wildfly-ee

private ClassInfo getAnnotationClass(final AnnotationTarget annotationTarget) {
  if (annotationTarget instanceof ClassInfo) {
    return (ClassInfo) annotationTarget;
  } else if (annotationTarget instanceof MethodInfo) {
    return ((MethodInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof FieldInfo) {
    return ((FieldInfo) annotationTarget).declaringClass();
  } else if (annotationTarget instanceof MethodParameterInfo) {
    return ((MethodParameterInfo) annotationTarget).method().declaringClass();
  } else {
    throw EeLogger.ROOT_LOGGER.unknownAnnotationTargetType(annotationTarget);
  }
}
origin: org.wildfly/wildfly-undertow

  classes.add(((MethodInfo) annotationTarget).declaringClass());
} else if (annotationTarget instanceof MethodParameterInfo) {
  classes.add(((MethodParameterInfo) annotationTarget).method().declaringClass());
origin: org.jboss.eap/wildfly-undertow

  classes.add(((MethodInfo) annotationTarget).declaringClass());
} else if (annotationTarget instanceof MethodParameterInfo) {
  classes.add(((MethodParameterInfo) annotationTarget).method().declaringClass());
origin: wildfly/jandex

intern(param.method().name());
for (Type type : param.method().args())
  addClassName(type.name());
addClassName(param.method().returnType().name());
org.jboss.jandexMethodParameterInfo

Javadoc

Represents an individual Java method parameter that was annotated.

Thread-Safety

This class is immutable and can be shared between threads without safe publication.

Most used methods

  • method
  • <init>
  • position
    Returns the 0 based position of this parameter.

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JList (javax.swing)
  • Github Copilot alternatives
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