ClassOrInterfaceType.getTypeArgs
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.github.javaparser.ast.type.ClassOrInterfaceType.getTypeArgs(Showing top 9 results out of 315)

origin: io.sundr/sundr-codegen

  public TypeDef apply(ClassOrInterfaceType item) {
    List<TypeParamDef> parameters = new ArrayList<TypeParamDef>();

    for (Type type : item.getTypeArgs()) {
      new TypeParamDefBuilder()
          .build();
    }

    return new TypeDefBuilder()
        .withName(item.getName())
        .withParameters(parameters)
        .build();
  }
}
origin: jooby-project/jooby

@Override
public Type visit(final ClassOrInterfaceType n, final Context ctx) {
 String name = name(n);
 Type type = ctx.resolveType(n, name)
   .orElseThrow(() -> new IllegalArgumentException("Type not found: " + name));
 List<Type> args = n.getTypeArgs().stream()
   .map(it -> it.accept(new TypeCollector(), ctx))
   .filter(it -> it != null)
   .collect(Collectors.toList());
 if (args.size() > 0) {
  type = Types.newParameterizedType(type, args.toArray(new Type[args.size()]));
 }
 return type;
}
origin: io.sundr/sundr-codegen

for (Type arg :classOrInterfaceType.getTypeArgs()) {
  if (arg instanceof ReferenceType) {
      ? new ClassRefBuilder().withDefinition(knownDefinition).build()
      : knownDefinition.toReference(arguments);
} else if (classOrInterfaceType.getTypeArgs().isEmpty() && boundName.length() == 1)  {
origin: io.sundr/sundr-codegen

  public TypeDef apply(ClassOrInterfaceType item) {
    List<TypeParamDef> parameters = new ArrayList<TypeParamDef>();

    for (Type type : item.getTypeArgs()) {
      new TypeParamDefBuilder()
          .build();
    }

    return new TypeDefBuilder()
        .withName(item.getName())
        .withParameters(parameters)
        .build();
  }
}
origin: io.sundr/sundr-codegen

  public TypeDef apply(ClassOrInterfaceType item) {
    List<TypeParamDef> parameters = new ArrayList<TypeParamDef>();

    for (Type type : item.getTypeArgs()) {
      new TypeParamDefBuilder()
          .build();
    }

    return new TypeDefBuilder()
        .withName(item.getName())
        .withParameters(parameters)
        .build();
  }
}
origin: io.sundr/sundr-codegen

  public TypeDef apply(ClassOrInterfaceType item) {
    List<TypeParamDef> parameters = new ArrayList<TypeParamDef>();

    for (Type type : item.getTypeArgs()) {
      new TypeParamDefBuilder()
          .build();
    }

    return new TypeDefBuilder()
        .withName(item.getName())
        .withParameters(parameters)
        .build();
  }
}
origin: io.sundr/sundr-codegen

for (Type arg :classOrInterfaceType.getTypeArgs()) {
  if (arg instanceof ReferenceType) {
      ? new ClassRefBuilder().withDefinition(knownDefinition).build()
      : knownDefinition.toReference(arguments);
} else if (classOrInterfaceType.getTypeArgs().isEmpty() && boundName.length() == 1)  {
origin: io.sundr/sundr-codegen

for (Type arg :classOrInterfaceType.getTypeArgs()) {
  if (arg instanceof ReferenceType) {
      ? new ClassRefBuilder().withDefinition(knownDefinition).build()
      : knownDefinition.toReference(arguments);
} else if (classOrInterfaceType.getTypeArgs().isEmpty() && boundName.length() == 1)  {
origin: io.sundr/sundr-codegen

for (Type arg :classOrInterfaceType.getTypeArgs()) {
  if (arg instanceof ReferenceType) {
      ? new ClassRefBuilder().withDefinition(knownDefinition).build()
      : knownDefinition.toReference(arguments);
} else if (classOrInterfaceType.getTypeArgs().isEmpty() && boundName.length() == 1)  {
com.github.javaparser.ast.typeClassOrInterfaceTypegetTypeArgs

Popular methods of ClassOrInterfaceType

  • <init>
  • getName
  • accept
  • getNameAsString
  • getScope
  • setName
  • setTypeArguments
    Sets the typeArguments
  • asString
  • customInitialization
  • findCompilationUnit
  • getAnnotations
  • getComment
  • getAnnotations,
  • getComment,
  • getParentNode,
  • getSymbolResolver,
  • getTokenRange,
  • getTypeArguments,
  • hashCode,
  • isBoxedType,
  • isUsingDiamondOperator

Popular classes and methods

  • compareTo (BigDecimal)
    Compares this BigDecimal with val. Returns one of the three values 1, 0, or -1. The method behaves a
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedHashMap (java.util)
    Hash table implementation of the Map interface with predictable iteration order. [Sun docs] [http:/
  • Pattern (java.util.regex)
    Emulation of the Pattern class, uses RegExp as internal implementation.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)