Tabnine Logo
AptUtils.getTypes
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypes
method
in
com.yahoo.aptutils.utils.AptUtils

Best Java code snippets using com.yahoo.aptutils.utils.AptUtils.getTypes (Showing top 4 results out of 315)

origin: yahoo/squidb

  private Element findErrorElement(TypeMirror errorClass, String elementName) {
    Element errorClassElement = utils.getTypes().asElement(errorClass);
    List<? extends Element> enclosedElements = errorClassElement.getEnclosedElements();
    for (Element e : enclosedElements) {
      if (e.getSimpleName().toString().equals(elementName)) {
        return e;
      }
    }
    return errorClassElement;
  }
}
origin: yahoo/squidb

@Override
protected boolean hasPropertyGeneratorForField(VariableElement field, DeclaredTypeName fieldType) {
  if (TypeConstants.isConstant(field)) {
    // Looks like a constant, ignore
    return false;
  }
  TypeElement typeElement = (TypeElement) utils.getTypes().asElement(field.asType());
  return typeElement != null && typeElement.getKind() == ElementKind.ENUM;
}
origin: com.yahoo.squidb/squidb-processor

  private Element findErrorElement(TypeMirror errorClass, String elementName) {
    Element errorClassElement = utils.getTypes().asElement(errorClass);
    List<? extends Element> enclosedElements = errorClassElement.getEnclosedElements();
    for (Element e : enclosedElements) {
      if (e.getSimpleName().toString().equals(elementName)) {
        return e;
      }
    }
    return errorClassElement;
  }
}
origin: com.yahoo.squidb/squidb-processor

@Override
protected boolean hasPropertyGeneratorForField(VariableElement field, DeclaredTypeName fieldType) {
  if (TypeConstants.isConstant(field)) {
    // Looks like a constant, ignore
    return false;
  }
  TypeElement typeElement = (TypeElement) utils.getTypes().asElement(field.asType());
  return typeElement != null && typeElement.getKind() == ElementKind.ENUM;
}
com.yahoo.aptutils.utilsAptUtilsgetTypes

Popular methods of AptUtils

  • getMessager
  • isEmpty
  • <init>
  • accumulateImportsFromElements
  • accumulateImportsFromTypeNames
  • getAnnotationValue
  • getAnnotationValueFromMirror
  • getElements
  • getTypeMirrorsFromAnnotationValue
  • getTypeNameFromTypeMirror
  • getTypeNamesFromAnnotationValue
  • getValuesFromAnnotationValue
  • getTypeNamesFromAnnotationValue,
  • getValuesFromAnnotationValue,
  • methodDeclarationParamsFromExecutableElement,
  • newJavaFileWriter

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JCheckBox (javax.swing)
  • 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