Tabnine Logo
TypeDef.getFullyQualifiedName
Code IndexAdd Tabnine to your IDE (free)

How to use
getFullyQualifiedName
method
in
io.sundr.codegen.model.TypeDef

Best Java code snippets using io.sundr.codegen.model.TypeDef.getFullyQualifiedName (Showing top 20 results out of 315)

origin: sundrio/sundrio

public A withDefinition(TypeDef definition) {
  this.definition = definition;
  this.fullyQualifiedName = definition.getFullyQualifiedName();
  return (A) this;
}
origin: sundrio/sundrio

  public String apply(TypeDef item) {
    return item.getFullyQualifiedName();
  }
}, "#");
origin: sundrio/sundrio

  private static String getKey(TypeDef clazz) {
    return clazz.getFullyQualifiedName();
  }
}
origin: sundrio/sundrio

public TypeDef registerApi(TypeDef api) {
  if (api != null) {
    apis.put(api.getFullyQualifiedName(), api);
  }
  return api;
}
origin: sundrio/sundrio

public TypeDef registerIfAbsent(TypeDef definition) {
  if (definition != null) {
    definitions.putIfAbsent(definition.getFullyQualifiedName(), definition);
  }
  return definition;
}
origin: sundrio/sundrio

public TypeDef register(TypeDef buildable) {
  if (buildable != null) {
    buildables.put(buildable.getFullyQualifiedName(), buildable);
  }
  return buildable;
}
origin: sundrio/sundrio

public TypeDef registerModel(TypeDef model) {
  if (model != null) {
    models.put(model.getFullyQualifiedName(), model);
  }
  return model;
}
origin: sundrio/sundrio

public boolean isBuildable(TypeDef type) {
  return type != null && buildables.containsKey(type.getFullyQualifiedName());
}
origin: sundrio/sundrio

public TypeDef register(TypeDef definition) {
  definitions.put(definition.getFullyQualifiedName(), definition);
  return definition;
}
origin: sundrio/sundrio

/**
 * Checks if a {@link TypeRef} is a {@link java.util.Optional}.
 * @param type  The type to check.
 * @return      True if its a {@link java.util.Optional}.
 */
public static boolean isOptional(TypeRef type) {
  if (!(type instanceof ClassRef)) {
    return false;
  }
  return JAVA_UTIL_OPTIONAL.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
}
origin: sundrio/sundrio

/**
 * Checks if a {@link TypeRef} is a {@link java.util.OptionalDouble}.
 * @param type  The type to check.
 * @return      True if its a {@link java.util.OptionalDouble}.
 */
public static boolean isOptionalDouble(TypeRef type) {
  if (!(type instanceof ClassRef)) {
    return false;
  }
  return JAVA_UTIL_OPTIONAL_DOUBLE.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
}
origin: sundrio/sundrio

public TypeDef getBuildable(TypeRef type) {
  if (type instanceof ClassRef) {
    return buildables.get(((ClassRef)type).getDefinition().getFullyQualifiedName());
  }
  return null;
}
origin: sundrio/sundrio

/**
 * Checks if a {@link TypeRef} is a {@link java.util.OptionalLong}.
 * @param type  The type to check.
 * @return      True if its a {@link java.util.OptionalLong}.
 */
public static boolean isOptionalLong(TypeRef type) {
  if (!(type instanceof ClassRef)) {
    return false;
  }
  return JAVA_UTIL_OPTIONAL_LONG.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
}
origin: sundrio/sundrio

/**
 * Checks if a {@link TypeRef} is a {@link java.util.OptionalInt}.
 * @param type  The type to check.
 * @return      True if its a {@link java.util.OptionalInt}.
 */
public static boolean isOptionalInt(TypeRef type) {
  if (!(type instanceof ClassRef)) {
    return false;
  }
  return JAVA_UTIL_OPTIONAL_INT.equals(((ClassRef)type).getDefinition().getFullyQualifiedName());
}
origin: sundrio/sundrio

public TypeDef getApi(TypeRef type) {
  if (type instanceof ClassRef) {
    return apis.get(((ClassRef)type).getDefinition().getFullyQualifiedName());
  }
  return null;
}
origin: sundrio/sundrio

public TypeDef getModel(TypeRef type) {
  if (type instanceof ClassRef) {
    return models.get(((ClassRef)type).getDefinition().getFullyQualifiedName());
  }
  return null;
}
origin: sundrio/sundrio

private static boolean hasPojoAnnotation(TypeDef typeDef) {
    return typeDef.getAnnotations().stream()
        .filter(a -> a.getClassRef().getDefinition().getFullyQualifiedName().equals(Pojo.class.getTypeName()))
        .findAny().isPresent();
}
origin: sundrio/sundrio

public void selectAnnotated(RoundEnvironment env, Types types, AnnotationSelector selector, Map<String, TypeDef> definitions) {
   for (Object o : env.getElementsAnnotatedWith((TypeElement) types.asElement(annotationMirror(selector)))) {
     if  (o instanceof TypeElement)  {
       TypeDef typeDef = new TypeDefBuilder(ElementTo.TYPEDEF.apply(ModelUtils.getClassElement((Element) o)))
           .build();
       definitions.put(typeDef.getFullyQualifiedName(), typeDef);
     }
   }
}
origin: sundrio/sundrio

public String getName() {
  if (requiresFullyQualifiedName()) {
    return getDefinition().getFullyQualifiedName();
  }
  return getDefinition().getName();
}
origin: sundrio/sundrio

public ClassRef(TypeDef definition, String fullyQualifiedName, int dimensions, List<TypeRef> arguments, Map<AttributeKey, Object> attributes) {
  super(attributes);
  this.definition = definition != null ? definition : new TypeDefBuilder().build();
  this.dimensions = dimensions;
  this.arguments = arguments;
  this.fullyQualifiedName = fullyQualifiedName != null ? fullyQualifiedName : (definition != null ? definition.getFullyQualifiedName() : null);
  if (definition != null) {
    DefinitionRepository.getRepository().registerIfAbsent(definition);
  }
}
io.sundr.codegen.modelTypeDefgetFullyQualifiedName

Javadoc

Returns the fully qualified name of the type.

Popular methods of TypeDef

  • getName
  • getPackageName
  • equals
  • getAttributes
  • getConstructors
  • getExtendsList
  • getMethods
  • getParameters
  • getProperties
  • toInternalReference
    Creates a ClassRef for internal use inside the scope of the type (methods, properties etc). It uses
  • toReference
  • getAnnotations
  • toReference,
  • getAnnotations,
  • getAttribute,
  • getImplementsList,
  • getKind,
  • hasAttribute,
  • isAbstract,
  • isAssignableFrom,
  • toUnboundedReference

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook extensions
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