Top Inners Constructors Methods
kotlin.reflect.jvm.internal.impl.utils

public Class DFS

extends Object
Class Inheritance
Imports
kotlin.jvm.functions.Function1, org.jetbrains.annotations.NotNull, java.util.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public abstract static class
DFS.CollectingNodeHandler<N, R, C extends Iterable<R>>

public static interface
public static interface
public abstract static class
public static class
public static interface
public static class

Constructor Summary

AccessConstructor and Description
public
DFS()

Method Summary

Modifier and TypeMethod and Description
public static <N, R> R
dfs(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, R> handler)

public static <N, R> R
dfs(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.NodeHandler<N, R> handler)

public static <N, R> R
dfsFromNode(N node, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, R> handler)

public static <N> void
dfsFromNode(N node, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited)

public static <N> void
doDfs(N current, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, ?> handler)

public static <N> Boolean
ifAny(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, final @NotNull kotlin.jvm.functions.Function1<N, Boolean> predicate)

public static <N> List<N>
public static <N> List<N>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DFSback to summary
public DFS()

Method Detail

dfsback to summary
public static <N, R> R dfs(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, R> handler)
dfsback to summary
public static <N, R> R dfs(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.NodeHandler<N, R> handler)
dfsFromNodeback to summary
public static <N, R> R dfsFromNode(N node, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, R> handler)
dfsFromNodeback to summary
public static <N> void dfsFromNode(N node, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited)
doDfsback to summary
public static <N> void doDfs(N current, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited, @NotNull DFS.NodeHandler<N, ?> handler)
ifAnyback to summary
public static <N> Boolean ifAny(@NotNull Collection<N> nodes, @NotNull DFS.Neighbors<N> neighbors, final @NotNull kotlin.jvm.functions.Function1<N, Boolean> predicate)
topologicalOrderback to summary
public static <N> List<N> topologicalOrder(@NotNull Iterable<N> nodes, @NotNull DFS.Neighbors<N> neighbors, @NotNull DFS.Visited<N> visited)
topologicalOrderback to summary
public static <N> List<N> topologicalOrder(@NotNull Iterable<N> nodes, @NotNull DFS.Neighbors<N> neighbors)
kotlin.reflect.jvm.internal.impl.utils back to summary

public abstract Class DFS.AbstractNodeHandler<N, R>

extends Object
implements DFS.NodeHandler<N, R>
Class Inheritance
  • java.lang.Object
  • kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler
All Implemented Interfaces
kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler
Known Direct Subclasses
kotlin.reflect.jvm.internal.impl.utils.DFS.CollectingNodeHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractNodeHandlerback to summary
public AbstractNodeHandler()

Method Detail

afterChildrenback to summary
public void afterChildren(N current)

Implements kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler.afterChildren.

Annotations
@Override
beforeChildrenback to summary
public boolean beforeChildren(N current)

Implements kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler.beforeChildren.

Annotations
@Override
kotlin.reflect.jvm.internal.impl.utils back to summary

public abstract Class DFS.CollectingNodeHandler<N, R, C extends java.lang.Iterable<R>>

extends DFS.AbstractNodeHandler<N, C extends Iterable<R>>
Class Inheritance
Known Direct Subclasses
kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandlerWithListResult

Field Summary

Modifier and TypeField and Description
protected final C

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public C
Inherited from kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler:
afterChildrenbeforeChildren

Field Detail

resultback to summary
protected final C result
Annotations
@NotNull

Constructor Detail

CollectingNodeHandlerback to summary
protected CollectingNodeHandler(C result)

Method Detail

resultback to summary
public C result()

Implements kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler.result.

Annotations
@Override
@NotNull
kotlin.reflect.jvm.internal.impl.utils back to summary

public Interface DFS.Neighbors<N>


Method Summary

Modifier and TypeMethod and Description
public @NotNull Iterable<? extends N>
getNeighbors(N current)

Method Detail

getNeighborsback to summary
public @NotNull Iterable<? extends N> getNeighbors(N current)
Annotations
@NotNull
kotlin.reflect.jvm.internal.impl.utils back to summary

public Interface DFS.NodeHandler<N, R>

Known Direct Implementers
kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler

Method Summary

Modifier and TypeMethod and Description
public void
afterChildren(N current)

public boolean
beforeChildren(N current)

public R

Method Detail

afterChildrenback to summary
public void afterChildren(N current)
beforeChildrenback to summary
public boolean beforeChildren(N current)
resultback to summary
public R result()
kotlin.reflect.jvm.internal.impl.utils back to summary

public abstract Class DFS.NodeHandlerWithListResult<N, R>

extends DFS.CollectingNodeHandler<N, R, LinkedList<R>>
Class Inheritance
Known Direct Subclasses
kotlin.reflect.jvm.internal.impl.utils.DFS.TopologicalOrder

Field Summary

Inherited from kotlin.reflect.jvm.internal.impl.utils.DFS.CollectingNodeHandler:
result

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from kotlin.reflect.jvm.internal.impl.utils.DFS.CollectingNodeHandler:
result

Constructor Detail

NodeHandlerWithListResultback to summary
protected NodeHandlerWithListResult()
kotlin.reflect.jvm.internal.impl.utils back to summary

public Class DFS.TopologicalOrder<N>

extends DFS.NodeHandlerWithListResult<N, N>
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void

Constructor Detail

TopologicalOrderback to summary
public TopologicalOrder()

Method Detail

afterChildrenback to summary
public void afterChildren(N current)

Overrides kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler.afterChildren.

Implements kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler.afterChildren.

Annotations
@Override
kotlin.reflect.jvm.internal.impl.utils back to summary

public Interface DFS.Visited<N>

Known Direct Implementers
kotlin.reflect.jvm.internal.impl.utils.DFS.VisitedWithSet

Method Summary

Modifier and TypeMethod and Description
public boolean

Method Detail

checkAndMarkVisitedback to summary
public boolean checkAndMarkVisited(N current)
kotlin.reflect.jvm.internal.impl.utils back to summary

public Class DFS.VisitedWithSet<N>

extends Object
implements DFS.Visited<N>
Class Inheritance
All Implemented Interfaces
kotlin.reflect.jvm.internal.impl.utils.DFS.Visited

Field Summary

Modifier and TypeField and Description
private final Set<N>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

visitedback to summary
private final Set<N> visited

Constructor Detail

VisitedWithSetback to summary
public VisitedWithSet()
VisitedWithSetback to summary
public VisitedWithSet(@NotNull Set<N> visited)

Method Detail

checkAndMarkVisitedback to summary
public boolean checkAndMarkVisited(N current)

Implements kotlin.reflect.jvm.internal.impl.utils.DFS.Visited.checkAndMarkVisited.

Annotations
@Override