congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
MethodInfo.returnTypeInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
returnTypeInfo
method
in
br.com.objectos.way.code.MethodInfo

Best Java code snippets using br.com.objectos.way.code.MethodInfo.returnTypeInfo (Showing top 18 results out of 315)

origin: br.com.objectos.way/pojo-plugin

public SimpleTypeInfo returnTypeInfo() {
 return methodInfo.returnTypeInfo();
}
origin: br.com.objectos.way/pojo-plugin

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

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

boolean instanceOf(Class<?> type) {
 SimpleTypeInfo returnTypeInfo = methodInfo.returnTypeInfo();
 return returnTypeInfo.isSubType(type);
}
origin: br.com.objectos.way/pojo-plugin

public Stream<TypeParameterInfo> typeParameterInfoStream() {
 return methodInfo.returnTypeInfo().getTypeParameterInfoStream();
}
origin: br.com.objectos/way-code

private String getterPrefix() {
 return returnTypeInfo().getGetterPrefix();
}
origin: br.com.objectos/way-code

private TypeName type() {
 return methodInfo.returnTypeInfo().typeName();
}
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

@AutoFunctional
public boolean hasReturnTypeInfo(SimpleTypeInfo typeInfo) {
 return returnTypeInfo().equals(typeInfo);
}
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-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

public FieldInfo toFieldInfo() {
 return FieldInfo.builder()
   .simpleTypeInfo(returnTypeInfo())
   .name(fieldName())
   .build();
}
origin: br.com.objectos.way/pojo-plugin

private static Optional<InvalidateMethod> of1(TypeInfo typeInfo, MethodInfo method, AnnotationInfo annotation) {
 String annotationName = annotation.simpleName();
 if (method.hasModifierInfo(ModifierInfo.FINAL)) {
  method.compilationError("@%s method cannot be final", annotationName);
  return Optional.empty();
 }
 if (method.hasAccessInfo(AccessInfo.PRIVATE)) {
  method.compilationError("@%s method cannot be private", annotationName);
  return Optional.empty();
 }
 SimpleTypeInfo returnTypeInfo = method.returnTypeInfo();
 boolean self = returnTypeInfo.equals(typeInfo.toSimpleTypeInfo());
 if (!returnTypeInfo.equals(SimpleTypePrimitives.VOID) && !self) {
  method.compilationError("@%s method must return void or self", annotationName);
  return Optional.empty();
 }
 InvalidateMethod invalidateMethod = new InvalidateMethod(method, annotation, self);
 return Optional.of(invalidateMethod);
}
origin: br.com.objectos/way-code

@AutoFunctional
public Set<ImportInfo> toImportInfoSet() {
 return WayIterables.from(parameterInfoList())
   .transformAndConcat(ParameterInfoToImportInfo.get())
   .addAll(returnTypeInfo().toImportInfo())
   .toImmutableSet();
}
origin: br.com.objectos/way-code

@Override
public boolean isEqual(MethodInfo that) {
 return Testables.isEqualHelper()
   .equal(name(), that.name())
   .equal(accessInfo(), that.accessInfo())
   .equal(modifierInfoSet(), that.modifierInfoSet())
   .equal(returnTypeInfo(), that.returnTypeInfo())
   .equal(annotationInfoMap(), that.annotationInfoMap())
   .equal(parameterInfoList(), that.parameterInfoList())
   .result();
}
origin: br.com.objectos/way-code

public ToMustacheHelper toMustacheHelper() {
 List<? extends ParameterInfo> parameterInfoList = parameterInfoList();
 List<IndexedParameterInfo> parameters = WayIterables.from(parameterInfoList)
   .transform(ParameterInfoToIndexedParameterInfo.get(parameterInfoList.size()))
   .toImmutableList();
 return Mustaches.toMustacheHelper()
   .add("name", name())
   .add("methodName", name())
   .add("toClassName", getClassName())
   .add("fieldName", fieldName())
   .add("fieldToClassName", WayCode.upperCaseFirstChar(fieldName()))
   .add("access", accessInfo())
   .add("returnType", returnTypeInfo())
   .add("parameters", parameters)
   .add("parametersIsEmpty", parameters.isEmpty());
}
br.com.objectos.way.codeMethodInforeturnTypeInfo

Popular methods of MethodInfo

  • fieldName
  • hasModifierInfo
  • hasName
  • hasParameterInfoListSize
  • name
  • hasAccessInfo
  • hasAnnotation
  • hasReturnTypeInfo
  • overrideWriter
  • accessInfo
  • annotationInfoAnnotatedWith
  • annotationInfoList
  • annotationInfoAnnotatedWith,
  • annotationInfoList,
  • annotationInfoMap,
  • codeWriter,
  • compilationError,
  • equals,
  • fieldWriter,
  • getClassName,
  • getterPrefix

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JButton (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • 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