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

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

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

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

public String name() {
 return methodInfo.fieldName();
}
origin: br.com.objectos/way-code

private String name() {
 return methodInfo.fieldName();
}
origin: br.com.objectos/way-code

public MethodInfoCodeWriter setFieldName() {
 set(methodInfo.fieldName());
 return this;
}
origin: br.com.objectos/way-code-pojo

protected MethodSpec methodOf(MethodInfo methodInfo) {
 return MethodSpec.methodBuilder(methodInfo.fieldName())
   .addModifiers(Modifier.PUBLIC, Modifier.ABSTRACT)
   .returns(innerTypeNameOf(methodInfo))
   .addParameter(parameter(methodInfo))
   .build();
}
origin: br.com.objectos/way-code-pojo

@Override
public MethodSpec apply(MethodInfo input) {
 return MethodSpec.methodBuilder(input.fieldName())
   .addAnnotation(Override.class)
   .addModifiers(Modifier.PUBLIC)
   .returns(innerTypeNameOf(input))
   .addParameter(parameter(input))
   .addCode(body(input))
   .build();
}
origin: br.com.objectos/way-code-pojo

private CodeBlock body(MethodInfo input) {
 return CodeBlock.builder()
   .addStatement("return $L", input.fieldName())
   .build();
}
origin: br.com.objectos.way/pojo-plugin

public String builderInnerSimpleName(MethodInfo method) {
 String suffix = Code.upperCaseFirstChar(method.fieldName());
 return builderInterface().simpleName() + suffix;
}
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-pojo

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

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

protected ClassName innerClassNameOf(MethodInfo methodInfo) {
 String innerName = classNameBuilder().simpleName() + WayCode.upperCaseFirstChar(methodInfo.fieldName());
 return classNameBuilder().nestedClass(innerName);
}
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.codeMethodInfofieldName

Popular methods of MethodInfo

  • hasModifierInfo
  • hasName
  • hasParameterInfoListSize
  • name
  • returnTypeInfo
  • 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
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • 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