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

How to use
ReflectAnnotation
in
leap.lang.reflect

Best Java code snippets using leap.lang.reflect.ReflectAnnotation (Showing top 7 results out of 315)

origin: org.leapframework/leap-lang

public AElement tryGetValueElement() {
  return tryGetElement("value");
}

origin: org.leapframework/leap-lang

public AElement getValueElement() throws ObjectNotFoundException{
  return getElement("value");
}

origin: org.leapframework/leap-lang

public AElement[] getElements(){
  initElements();
  return elements;
}

origin: org.leapframework/leap-core

protected void tryResolveErrorMessageFromAnnotation(Annotation a) {
  ReflectAnnotation ra = ReflectAnnotation.of(a.annotationType());
  AElement e = ra.tryGetElement("message");
  if(null != e){
    this.setErrorMessageOrKey((String)e.getValue(a));
  }
}

origin: org.leapframework/leap-lang

public static ReflectAnnotation of(Class<?> annotationType){
  Assert.isTrue(annotationType.isAnnotation(),"Not an annotation type");
  return new ReflectAnnotation(annotationType);
}

origin: org.leapframework/leap-lang

public AElement getElement(String name) throws ObjectNotFoundException {
  AElement e = tryGetElement(name);
  if(null == e){
    throw new ObjectNotFoundException("Annotation element '" + name + "' not found in type '" + type.getName() + "'");
  }
  return e;
}

origin: org.leapframework/leap-lang

public AElement tryGetElement(String name) {
  initElements();
  
  for(AElement e : elements){
    if(e.getName().equals(name)){
      return e;
    }
  }
  return null;
}

leap.lang.reflectReflectAnnotation

Most used methods

  • tryGetElement
  • <init>
  • getElement
  • initElements
  • of

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text 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