Codota Logo
AnnotationInstance.create
Code IndexAdd Codota to your IDE (free)

How to use
create
method
in
org.jboss.jandex.AnnotationInstance

Best Java code snippets using org.jboss.jandex.AnnotationInstance.create (Showing top 3 results out of 315)

  • Common ways to obtain AnnotationInstance
private void myMethod () {
AnnotationInstance a =
  • Codota IconAnnotationValue annotationValue;annotationValue.asNested()
  • Codota IconDeploymentUnit deploymentUnit;AttachmentKey attachmentKey;deploymentUnit.getAttachment(attachmentKey)
  • Codota IconDeploymentUnit deploymentUnit;ProcessApplicationAttachments.getPreUndeployDescription(deploymentUnit)
  • Smart code suggestions by Codota
}
origin: wildfly/jandex

/**
 * Construct a new mock annotation instance. The passed values list will be defensively copied.
 *
 * @param name the name of the annotation instance
 * @param target the thing the annotation is declared on
 * @param values the values of this annotation instance
 * @return the new mock Annotation Instance
 */
public static final AnnotationInstance create(DotName name, AnnotationTarget target, List<AnnotationValue> values) {
  if (name == null)
    throw new IllegalArgumentException("Name can't be null");
  if (values == null)
    throw new IllegalArgumentException("Values can't be null");
  return create(name, target, values.toArray(ANNOTATION_VALUES_TYPE));
}
origin: org.hibernate/com.springsource.org.hibernate.core

static AnnotationInstance create(DotName name, AnnotationTarget target, AnnotationValue[] values) {
  if ( values == null || values.length == 0 ) {
    values = EMPTY_ANNOTATION_VALUE_ARRAY;
  }
  return AnnotationInstance.create( name, target, addMockMark( values ) );
}
origin: org.hibernate/com.springsource.org.hibernate

static AnnotationInstance create(DotName name, AnnotationTarget target, AnnotationValue[] values) {
  if ( values == null || values.length == 0 ) {
    values = EMPTY_ANNOTATION_VALUE_ARRAY;
  }
  return AnnotationInstance.create( name, target, addMockMark( values ) );
}
org.jboss.jandexAnnotationInstancecreate

Javadoc

Construct a new mock annotation instance. The passed values list will be defensively copied.

Popular methods of AnnotationInstance

  • target
  • value
  • name
  • toString
  • values
  • <init>
  • equals
    Returns whether or not this annotation instance is equivalent to another instance. An annotation ins
  • hashCode
    Returns a hash code representing this object.
  • valueWithDefault
    Returns a value that corresponds with the specified parameter name, accounting for its default value

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now