Tabnine Logo
SimpleTypeInfo.typeName
Code IndexAdd Tabnine to your IDE (free)

How to use
typeName
method
in
br.com.objectos.way.code.SimpleTypeInfo

Best Java code snippets using br.com.objectos.way.code.SimpleTypeInfo.typeName (Showing top 20 results out of 315)

origin: br.com.objectos/way-code

private TypeName returnType() {
 return methodInfo
   .returnTypeInfo()
   .typeName();
}
origin: br.com.objectos.way/pojo-plugin

TypeName typeName() {
 SimpleTypeInfo returnTypeInfo = methodInfo.returnTypeInfo();
 return returnTypeInfo.typeName();
}
origin: br.com.objectos/way-code

@Override
public TypeName typeName() {
 return ArrayTypeName.of(component.typeName());
}
origin: br.com.objectos/way-code

public TypeName toTypeName() {
 return toSimpleTypeInfo().typeName();
}
origin: br.com.objectos/way-code

private TypeName type() {
 return methodInfo.returnTypeInfo().typeName();
}
origin: br.com.objectos/way-code

void addTypeNameAndName(List<Object> parameterList) {
 TypeName typeName = simpleTypeInfo().typeName();
 parameterList.add(typeName);
 addName(parameterList);
}
origin: br.com.objectos.way/pojo-plugin

@Override
public PojoPropertyFieldBuilder type() {
 MethodInfo methodInfo = property.methodInfo();
 SimpleTypeInfo returnTypeInfo = methodInfo.returnTypeInfo();
 type = returnTypeInfo.typeName();
 return this;
}
origin: br.com.objectos/way-code-pojo

@Override
public MethodSpec apply(MethodInfo input) {
 return MethodSpec.methodBuilder(input.name())
   .returns(input.returnTypeInfo().typeName())
   .addCode(body(input))
   .build();
}
origin: br.com.objectos.way/pojo-plugin

@Override
public BuilderBody nullCheckIfNecessary(String variableName) {
 SimpleTypeInfo returnTypeInfo = methodInfo().returnTypeInfo();
 Optional<CodeBlock> maybeNull = Code.nullCheck(returnTypeInfo.typeName(), variableName);
 if (maybeNull.isPresent()) {
  body.add(maybeNull.get());
 }
 return this;
}
origin: br.com.objectos.way/io-flat-pojo-plugin

@Override
void recordReaderCode(Body body) {
 SimpleTypeInfo returnTypeInfo = property.returnTypeInfo();
 body.add(".flatEnum($L, $T.of($T.class))",
   fieldAnnotationIntValue("length"), FlatEnumParser.class, returnTypeInfo.typeName());
}
origin: br.com.objectos.way/io-flat-pojo-plugin

@Override
void recordReaderCode(Body body) {
 body.add(".custom($L, new $T())",
   fieldAnnotationIntValue("length"),
   fieldAnnotationSimpleTypeInfoValue("formatter").typeName());
}
origin: br.com.objectos/way-code-pojo

private ParameterSpec parameterSpec() {
 return ParameterSpec.builder(testableOf.typeName(), parameterName()).build();
}
origin: br.com.objectos/way-code

public FieldSpec write() {
 SimpleTypeInfo simpleTypeInfo = parameterInfo.simpleTypeInfo();
 TypeName typeName = simpleTypeInfo.typeName();
 String name = parameterInfo.name();
 return FieldSpec.builder(typeName, prefix + name, modifiers)
   .build();
}
origin: br.com.objectos.way/io-flat-pojo-plugin

@Override
void recordWriterCode(Body body) {
 body.add(".custom($L, $L, new $T())",
   property.name(),
   fieldAnnotationIntValue("length"),
   fieldAnnotationSimpleTypeInfoValue("formatter").typeName());
}
origin: br.com.objectos/way-code-pojo

private ParameterSpec parameter(MethodInfo methodInfo) {
 TypeName type = methodInfo.returnTypeInfo().typeName();
 return ParameterSpec.builder(type, methodInfo.fieldName()).build();
}
origin: br.com.objectos/way-code-pojo

private ParameterSpec parameter(MethodInfo input) {
 SimpleTypeInfo returnTypeInfo = input.returnTypeInfo();
 return ParameterSpec.builder(returnTypeInfo.typeName(), input.fieldName()).build();
}
origin: br.com.objectos/way-code

@AutoFunctional
public ParameterSpec toParameterSpec() {
 TypeName type = simpleTypeInfo().typeName();
 return ParameterSpec.builder(type, name())
   .build();
}
origin: br.com.objectos.way/io-flat-pojo-plugin

@Override
public Optional<FieldSpec> parserFieldSpec() {
 TypeName type = property.returnTypeInfo().typeName();
 String name = property.name();
 FieldSpec field = FieldSpec.builder(type, name)
   .addModifiers(Modifier.PRIVATE, Modifier.STATIC, Modifier.FINAL)
   .initializer("$S", text())
   .build();
 return Optional.of(field);
}
origin: br.com.objectos.way/io-flat-pojo-plugin

@Override
public Optional<FieldSpec> parserFieldSpec() {
 TypeName type = property.returnTypeInfo().typeName();
 String name = property.name();
 FieldSpec field = FieldSpec.builder(type, name)
   .addModifiers(Modifier.PRIVATE, Modifier.STATIC, Modifier.FINAL)
   .initializer("$S", fieldAnnotationStringValue("value"))
   .build();
 return Optional.of(field);
}
origin: br.com.objectos.way/io-flat-pojo-plugin

void recordBuilderCode(Body body) {
 SimpleTypeInfo returnTypeInfo = property.returnTypeInfo();
 if (returnTypeInfo.isPrimitive()) {
  body.add(".$L(record.$LValue())", property.name(), returnTypeInfo.simpleName());
 } else {
  body.add(".$L(record.<$T> get())", property.name(), returnTypeInfo.typeName());
 }
}
br.com.objectos.way.codeSimpleTypeInfotypeName

Popular methods of SimpleTypeInfo

  • equals
  • isInfoOf
  • kind
  • nameInfo
  • newPrimitive
  • packageInfo
  • toArray
  • typeParameterInfoList
  • getTypeParameterInfoStream
  • isPrimitive
  • isSubType
  • newType
  • isSubType,
  • newType,
  • simpleName,
  • typeNameRaw,
  • className,
  • classNameSuffix,
  • fileAt,
  • getDeclaredName,
  • getGetterPrefix

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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