congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MCollectionType.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
leap.lang.meta.MCollectionType
constructor

Best Java code snippets using leap.lang.meta.MCollectionType.<init> (Showing top 8 results out of 315)

origin: org.leapframework/leap-webapi

protected MCollectionType readCollectionType(JsonObject items, SwaggerExtension ex) {
  return new MCollectionType(readType(items, ex));
}
origin: org.leapframework/leap-webapi

protected void addQueryResponse(RestdContext ctx, SqlCommand sc, FuncActionBuilder action, MApiOperationBuilder mo) {
  //todo:
  MApiResponseBuilder r = new MApiResponseBuilder();
  r.setStatus(200);
  r.setType(new MCollectionType(MDictionaryType.INSTANCE));
  r.setDescription("Success");
  /*
  MApiHeaderBuilder header = new MApiHeaderBuilder();
  header.setName("X-Total-Count");
  header.setType(MSimpleTypes.BIGINT);
  header.setDescription("The total count of query records.");
  r.addHeader(header);
  */
  mo.addResponse(r);
}
origin: org.leapframework/jmms-core

return new MCollectionType(elementType);
return new MCollectionType(MObjectType.TYPE);
    throw new IllegalStateException("Invalid array type '" + typeName + "'");
  return new MCollectionType(resolveType(api, elementType));
origin: org.leapframework/leap-lang

return new MCollectionType(root.getMType(declaringType, type.getComponentType(), null, context));
return new MCollectionType(elementType);
origin: org.leapframework/jmms-core

private static MType doResolveType(MetaApi api, MType type) {
  if(type instanceof MUnresolvedTypeRef) {
    return resolveType(api, ((MUnresolvedTypeRef) type).getRefTypeName());
  }
  if(type instanceof MCollectionType) {
    return new MCollectionType(doResolveType(api, type.asCollectionType().getElementType()));
  }
  if(type instanceof MDictionaryType) {
    return new MDictionaryType(type.asDictionaryType().getKeyType(), doResolveType(api, type.asDictionaryType().getValueType()));
  }
  throw new IllegalStateException("Unsupported type '" + type + "'");
}
origin: org.leapframework/leap-webapi

private MApiResponseBuilder newModelQueryResponse(RestdModel model) {
  MApiResponseBuilder r = new MApiResponseBuilder();
  r.setStatus(200);
  r.setType(new MCollectionType(new MComplexTypeRef(model.getName())));
  r.setDescription("Success");
  MApiHeaderBuilder header = new MApiHeaderBuilder();
  header.setName("X-Total-Count");
  header.setType(MSimpleTypes.BIGINT);
  header.setDescription("The total count of query records.");
  r.addHeader(header);
  return r;
}
origin: org.leapframework/jmms-engine

p.setExpandable(r.getExpandable());
if(r.isOneToMany() || r.isManyToMany()) {
  p.setType(new MCollectionType(new MComplexTypeRef(r.getTargetEntity())));
}else {
  p.setType(new MComplexTypeRef(r.getTargetEntity()));
origin: org.leapframework/leap-orm

  p.setType(new MCollectionType(new MComplexTypeRef(targetEntity.getEntityName())));
}else{
  p.setType(new MComplexTypeRef(targetEntity.getEntityName()));
leap.lang.metaMCollectionType<init>

Popular methods of MCollectionType

  • getElementType

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • Path (java.nio.file)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • Top 17 Plugins for Android Studio
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