APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.javadoc.internal.doclets.toolkit.util

public Class DocFinder

extends Object
Class Inheritance
Imports
java.util.Iterator, .Objects, .Optional, java.util.function.Function, javax.lang.model.element.ExecutableElement

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
private static record
public static interface
public static class
public static interface
private static record

Field Summary

Modifier and TypeField and Description
private static final DocFinder.Result<?>
private final Function<ExecutableElement, Iterable<? extends ExecutableElement>>
private static final DocFinder.Result<?>

Constructor Summary

AccessConstructor and Description
pack-priv
DocFinder(Function<ExecutableElement, Iterable<? extends ExecutableElement>> overriddenMethodLookup)

Method Summary

Modifier and TypeMethod and Description
public <T, X extends Throwable> DocFinder.Result<T>
find(ExecutableElement method, DocFinder.Criterion<T, X> criterion)

public <T, X extends Throwable> DocFinder.Result<T>
search(ExecutableElement method, DocFinder.Criterion<T, X> criterion)

private <T, X extends Throwable> DocFinder.Result<T>
search0(ExecutableElement method, boolean includeMethodInSearch, boolean throwExceptionIfDoesNotOverride, DocFinder.Criterion<T, X> criterion)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONTINUEback to summary
private static final DocFinder.Result<?> CONTINUE
overriddenMethodLookupback to summary
private final Function<ExecutableElement, Iterable<? extends ExecutableElement>> overriddenMethodLookup
SKIPback to summary
private static final DocFinder.Result<?> SKIP

Constructor Detail

DocFinderback to summary
pack-priv DocFinder(Function<ExecutableElement, Iterable<? extends ExecutableElement>> overriddenMethodLookup)

Method Detail

findback to summary
public <T, X extends Throwable> DocFinder.Result<T> find(ExecutableElement method, DocFinder.Criterion<T, X> criterion) throws NoOverriddenMethodFound, Criterion-:X
searchback to summary
public <T, X extends Throwable> DocFinder.Result<T> search(ExecutableElement method, DocFinder.Criterion<T, X> criterion) throws Criterion-:X
search0back to summary
private <T, X extends Throwable> DocFinder.Result<T> search0(ExecutableElement method, boolean includeMethodInSearch, boolean throwExceptionIfDoesNotOverride, DocFinder.Criterion<T, X> criterion) throws NoOverriddenMethodFound, Criterion-:X
jdk.javadoc.internal.doclets.toolkit.util back to summary

private final Record DocFinder.Concluded<T>

extends Record
implements DocFinder.Result.Conclude<T>
Class Inheritance
All Implemented Interfaces
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Conclude, jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result
Record Components
value:T 

Field Summary

Modifier and TypeField and Description
private final T
value

Record Component accessed by value().

Constructor Summary

AccessConstructor and Description
pack-priv
Concluded(T value)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public Optional<T>
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public T

Field Detail

valueback to summary
private final T value

Record Component accessed by value().

Constructor Detail

Concludedback to summary
pack-priv Concluded(T value)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toOptionalback to summary
public Optional<T> toOptional()

Overrides default jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.toOptional.

Annotations
@Override
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

valueback to summary
public T value()

Record Component getter of value.

Implements jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Conclude.value.

jdk.javadoc.internal.doclets.toolkit.util back to summary

private final Record DocFinder.Continued<T>

extends Record
implements DocFinder.Result.Continue<T>
Class Inheritance
All Implemented Interfaces
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Continue, jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result
Record Components
no record components

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Constructor Detail

Continuedback to summary
private Continued()

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.javadoc.internal.doclets.toolkit.util back to summary

public Interface DocFinder.Criterion<T, X extends Throwable>

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public DocFinder.Result<T>

Method Detail

applyback to summary
public DocFinder.Result<T> apply(ExecutableElement method) throws Criterion:X
jdk.javadoc.internal.doclets.toolkit.util back to summary

public final Class DocFinder.NoOverriddenMethodFound

extends Exception
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
private

Constructor Detail

NoOverriddenMethodFoundback to summary
private NoOverriddenMethodFound()
jdk.javadoc.internal.doclets.toolkit.util back to summary

public sealed Interface DocFinder.Result<T>

permits DocFinder.Result.Skip<T>, DocFinder.Result.Continue<T>, DocFinder.Result.Conclude<T>
Known Direct Subinterfaces
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Skip, jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Continue, jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Conclude

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface
public static interface

Method Summary

Modifier and TypeMethod and Description
public static <T> DocFinder.Result<T>
CONCLUDE(T value)

public static <T> DocFinder.Result<T>
public static <T> DocFinder.Result<T>
fromOptional(Optional<T> optional)

public static <T> DocFinder.Result<T>
SKIP()

public default Optional<T>

Method Detail

CONCLUDEback to summary
public static <T> DocFinder.Result<T> CONCLUDE(T value)
CONTINUEback to summary
public static <T> DocFinder.Result<T> CONTINUE()
Annotations
@SuppressWarnings:unchecked
fromOptionalback to summary
public static <T> DocFinder.Result<T> fromOptional(Optional<T> optional)
SKIPback to summary
public static <T> DocFinder.Result<T> SKIP()
Annotations
@SuppressWarnings:unchecked
toOptionalback to summary
public default Optional<T> toOptional()
jdk.javadoc.internal.doclets.toolkit.util back to summary

public sealed Interface DocFinder.Result.Conclude<T>

extends DocFinder.Result<T>
permits DocFinder.Concluded<T>
Known Direct Implementers
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Concluded

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result:
CONCLUDECONTINUEfromOptionalSKIPtoOptional

Method Detail

valueback to summary
public T value()
jdk.javadoc.internal.doclets.toolkit.util back to summary

public sealed Interface DocFinder.Result.Continue<T>

extends DocFinder.Result<T>
permits DocFinder.Continued<T>
Known Direct Implementers
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Continued

jdk.javadoc.internal.doclets.toolkit.util back to summary

public sealed Interface DocFinder.Result.Skip<T>

extends DocFinder.Result<T>
permits DocFinder.Skipped<T>
Known Direct Implementers
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Skipped

jdk.javadoc.internal.doclets.toolkit.util back to summary

private final Record DocFinder.Skipped<T>

extends Record
implements DocFinder.Result.Skip<T>
Class Inheritance
All Implemented Interfaces
jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result.Skip, jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Result
Record Components
no record components

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Constructor Detail

Skippedback to summary
private Skipped()

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.