Enum MethodGraph.Node.Sort
- All Implemented Interfaces:
Serializable, Comparable<MethodGraph.Node.Sort>, java.lang.constant.Constable
- Enclosing interface:
MethodGraph.Node
Represents a
MethodGraph.Node's state.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an ambiguous node, i.e.Represents a resolved node that was not made visible by a visibility bridge.Represents an unresolved node.Represents a resolved node that was made visible by a visibility bridge. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleantrueif this sort represents a node that was made by a visibility bridge.private final booleantrueif this sort represents a resolved node.private final booleantrueif this sort represents a non-ambiguous node. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSort(boolean resolved, boolean unique, boolean madeVisible) Creates a new sort. -
Method Summary
Modifier and TypeMethodDescriptionbooleanVerifies if this sort represents a node that was made visible by a visibility bridge.booleanVerifies if this sort represents a resolved node.booleanisUnique()Verifies if this sort represents a non-ambiguous node.static MethodGraph.Node.SortReturns the enum constant of this type with the specified name.static MethodGraph.Node.Sort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VISIBLE
Represents a resolved node that was made visible by a visibility bridge. -
RESOLVED
Represents a resolved node that was not made visible by a visibility bridge. -
AMBIGUOUS
Represents an ambiguous node, i.e. a node that might refer to several methods. -
UNRESOLVED
Represents an unresolved node.
-
-
Field Details
-
resolved
private final boolean resolvedtrueif this sort represents a resolved node. -
unique
private final boolean uniquetrueif this sort represents a non-ambiguous node. -
madeVisible
private final boolean madeVisibletrueif this sort represents a node that was made by a visibility bridge.
-
-
Constructor Details
-
Sort
private Sort(boolean resolved, boolean unique, boolean madeVisible) Creates a new sort.- Parameters:
resolved-trueif this sort represents a resolved node.unique-trueif this sort represents a non-ambiguous node.madeVisible-trueif this sort represents a node that was made by a visibility bridge.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isResolved
public boolean isResolved()Verifies if this sort represents a resolved node.- Returns:
trueif this sort represents a resolved node.
-
isUnique
public boolean isUnique()Verifies if this sort represents a non-ambiguous node.- Returns:
trueif this sort represents a non-ambiguous node.
-
isMadeVisible
public boolean isMadeVisible()Verifies if this sort represents a node that was made visible by a visibility bridge.- Returns:
trueif this sort represents a node that was made visible by a visibility bridge.
-