congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
MethodSignatureWriter$Nullness
Code IndexAdd Tabnine to your IDE (free)

How to use
MethodSignatureWriter$Nullness
in
me.seeber.gradle.ide.eclipse.annotations

Best Java code snippets using me.seeber.gradle.ide.eclipse.annotations.MethodSignatureWriter$Nullness (Showing top 12 results out of 315)

origin: gradle.plugin.me.seeber.gradle/gradle-project-config

output.append('L').append(nullable.getMarker());
origin: me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getParameterNullability(net.bytebuddy.description.method.ParameterDescription)
 */
@Override
public Nullness getParameterNullability(ParameterDescription parameter) {
  PackageDescription pakkage = parameter.getDeclaringMethod().getDeclaringType().asErasure().getPackage();
  Optional<AnnotationDescription> packageAnnotation = pakkage.getDeclaredAnnotations().stream()
      .filter(a -> a.getAnnotationType().getName().equals(this.nonnullParameterDefaultAnnotation)).findAny();
  Nullness defaultNullness = Validate
      .notNull(packageAnnotation.map(a -> Nullness.NONNULL).orElse(Nullness.UNDEFINED));
  Nullness nullability = getNullability(parameter.getDeclaredAnnotations());
  return defaultNullness.override(nullability);
}
origin: me.seeber.gradle/gradle-project-config

output.append('L').append(nullable.getMarker());
origin: me.seeber.gradle/gradle-project-config

/**
 * Append an array type signature
 *
 * @param type Array type to append
 * @param nullable Nullness of type
 * @param output Output to append to
 * @param <A> Type of output
 * @return Supplied output to append to
 */
public <A extends Appendable> A appendArrayTypeSignature(Generic type, Nullness nullable, A output) {
  try {
    output.append('[').append(nullable.getMarker());
    appendJavaTypeSignature(Validate.notNull(type.getComponentType()), Nullness.UNDEFINED, output);
    return output;
  }
  catch (Exception e) {
    throw new RuntimeException(String.format("Could not write array type %s", type));
  }
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * Append a type variable signature
 *
 * @param typeVariable Type variable to append signature
 * @param nullable Nullness of type variable
 * @param output Output to append to
 * @param <A> Type of output
 * @return Supplied output to append to
 */
public <A extends Appendable> A appendTypeVariableSignature(Generic typeVariable, Nullness nullable, A output) {
  try {
    output.append('T').append(nullable.getMarker()).append(typeVariable.getTypeName()).append(';');
    return output;
  }
  catch (Exception e) {
    throw new RuntimeException(String.format("Could not type variable %s", typeVariable));
  }
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * Append an array type signature
 *
 * @param type Array type to append
 * @param nullable Nullness of type
 * @param output Output to append to
 * @param <A> Type of output
 * @return Supplied output to append to
 */
public <A extends Appendable> A appendArrayTypeSignature(Generic type, Nullness nullable, A output) {
  try {
    output.append('[').append(nullable.getMarker());
    appendJavaTypeSignature(Validate.notNull(type.getComponentType()), Nullness.UNDEFINED, output);
    return output;
  }
  catch (Exception e) {
    throw new RuntimeException(String.format("Could not write array type %s", type));
  }
}
origin: me.seeber.gradle/gradle-project-config

/**
 * Append a type variable signature
 *
 * @param typeVariable Type variable to append signature
 * @param nullable Nullness of type variable
 * @param output Output to append to
 * @param <A> Type of output
 * @return Supplied output to append to
 */
public <A extends Appendable> A appendTypeVariableSignature(Generic typeVariable, Nullness nullable, A output) {
  try {
    output.append('T').append(nullable.getMarker()).append(typeVariable.getTypeName()).append(';');
    return output;
  }
  catch (Exception e) {
    throw new RuntimeException(String.format("Could not type variable %s", typeVariable));
  }
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getParameterNullability(net.bytebuddy.description.method.ParameterDescription)
 */
@Override
public Nullness getParameterNullability(ParameterDescription parameter) {
  PackageDescription pakkage = parameter.getDeclaringMethod().getDeclaringType().asErasure().getPackage();
  Optional<AnnotationDescription> packageAnnotation = pakkage.getDeclaredAnnotations().stream()
      .filter(a -> a.getAnnotationType().getName().equals(this.nonnullParameterDefaultAnnotation)).findAny();
  Nullness defaultNullness = Validate
      .notNull(packageAnnotation.map(a -> Nullness.NONNULL).orElse(Nullness.UNDEFINED));
  Nullness nullability = getNullability(parameter.getDeclaredAnnotations());
  return defaultNullness.override(nullability);
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getParameterNullability(net.bytebuddy.description.method.ParameterDescription)
 */
@Override
public Nullness getParameterNullability(ParameterDescription parameter) {
  Nullness nullability = Nullness.UNDEFINED;
  for (Nullability provider : this.nullabilities) {
    Nullness override = provider.getParameterNullability(parameter);
    nullability = nullability.override(override);
  }
  return nullability;
}
origin: me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getReturnValueNullability(MethodDescription)
 */
@Override
public Nullness getReturnValueNullability(MethodDescription method) {
  Nullness nullability = Nullness.UNDEFINED;
  for (Nullability provider : this.nullabilities) {
    Nullness override = provider.getReturnValueNullability(method);
    nullability = nullability.override(override);
  }
  return nullability;
}
origin: me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getParameterNullability(net.bytebuddy.description.method.ParameterDescription)
 */
@Override
public Nullness getParameterNullability(ParameterDescription parameter) {
  Nullness nullability = Nullness.UNDEFINED;
  for (Nullability provider : this.nullabilities) {
    Nullness override = provider.getParameterNullability(parameter);
    nullability = nullability.override(override);
  }
  return nullability;
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

/**
 * @see me.seeber.gradle.ide.eclipse.annotations.Nullability#getReturnValueNullability(MethodDescription)
 */
@Override
public Nullness getReturnValueNullability(MethodDescription method) {
  Nullness nullability = Nullness.UNDEFINED;
  for (Nullability provider : this.nullabilities) {
    Nullness override = provider.getReturnValueNullability(method);
    nullability = nullability.override(override);
  }
  return nullability;
}
me.seeber.gradle.ide.eclipse.annotationsMethodSignatureWriter$Nullness

Javadoc

Values used to write nullness in signatures

Most used methods

  • getMarker
    Get the marker to write nullness in signatures
  • override
    Override this nullness value with another value

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getContentResolver (Context)
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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