congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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