congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AbstractPropertyInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractPropertyInfo
in
org.jboss.gwt.elemento.processor.context

Best Java code snippets using org.jboss.gwt.elemento.processor.context.AbstractPropertyInfo (Showing top 3 results out of 315)

origin: org.jboss.gwt.elemento/elemento-template-processor

private List<AbstractPropertyInfo> processAbstractProperties(TypeElement type) {
  List<AbstractPropertyInfo> abstractProperties = new ArrayList<>();
  ElementFilter.methodsIn(type.getEnclosedElements()).stream()
      .filter(method -> method.getModifiers().contains(Modifier.ABSTRACT))
      .forEach(method -> {
        // verify method
        if (method.getReturnType().getKind() == TypeKind.VOID) {
          abortWithError(method, "Abstract classes in a @%s class must not return void",
              Templated.class.getSimpleName());
        }
        if (!method.getParameters().isEmpty()) {
          abortWithError(method, "Abstract classes in a @%s class must not have parameters",
              Templated.class.getSimpleName());
        }
        String typeName = TypeSimplifier.simpleTypeName(method.getReturnType());
        String methodName = method.getSimpleName().toString();
        String fieldName = (isGetter(method)) ? nameWithoutPrefix(methodName) : methodName;
        String modifier = getModifier(method);
        abstractProperties.add(new AbstractPropertyInfo(typeName, fieldName, methodName, modifier));
      });
  return abstractProperties;
}
origin: org.jboss.gwt.elemento/elemento-template

private List<AbstractPropertyInfo> processAbstractProperties(TypeElement type) {
  List<AbstractPropertyInfo> abstractProperties = new ArrayList<>();
  ElementFilter.methodsIn(type.getEnclosedElements()).stream()
      .filter(method -> method.getModifiers().contains(Modifier.ABSTRACT))
      .forEach(method -> {
        // verify method
        if (method.getReturnType().getKind() == TypeKind.VOID) {
          abortWithError(method, "Abstract classes in a @%s class must not return void",
              Templated.class.getSimpleName());
        }
        if (!method.getParameters().isEmpty()) {
          abortWithError(method, "Abstract classes in a @%s class must not have parameters",
              Templated.class.getSimpleName());
        }
        String typeName = TypeSimplifier.simpleTypeName(method.getReturnType());
        String methodName = method.getSimpleName().toString();
        String fieldName = (isGetter(method)) ? nameWithoutPrefix(methodName) : methodName;
        String modifier = getModifier(method);
        abstractProperties.add(new AbstractPropertyInfo(typeName, fieldName, methodName, modifier));
      });
  return abstractProperties;
}
origin: hal/elemento

private List<AbstractPropertyInfo> processAbstractProperties(TypeElement type) {
  List<AbstractPropertyInfo> abstractProperties = new ArrayList<>();
  ElementFilter.methodsIn(type.getEnclosedElements()).stream()
      .filter(method -> method.getModifiers().contains(Modifier.ABSTRACT))
      .forEach(method -> {
        // verify method
        if (method.getReturnType().getKind() == TypeKind.VOID) {
          abortWithError(method, "Abstract classes in a @%s class must not return void",
              Templated.class.getSimpleName());
        }
        if (!method.getParameters().isEmpty()) {
          abortWithError(method, "Abstract classes in a @%s class must not have parameters",
              Templated.class.getSimpleName());
        }
        String typeName = TypeSimplifier.simpleTypeName(method.getReturnType());
        String methodName = method.getSimpleName().toString();
        String fieldName = (isGetter(method)) ? nameWithoutPrefix(methodName) : methodName;
        String modifier = getModifier(method);
        abstractProperties.add(new AbstractPropertyInfo(typeName, fieldName, methodName, modifier));
      });
  return abstractProperties;
}
org.jboss.gwt.elemento.processor.contextAbstractPropertyInfo

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top 12 Jupyter Notebook Extensions
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