Package net.bytebuddy.dynamic.scaffold
Enum MethodGraph.Node.Sort
- java.lang.Object
-
- java.lang.Enum<MethodGraph.Node.Sort>
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Node.Sort
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MethodGraph.Node.Sort>
- Enclosing interface:
- MethodGraph.Node
public static enum MethodGraph.Node.Sort extends java.lang.Enum<MethodGraph.Node.Sort>
Represents aMethodGraph.Node's state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUSRepresents an ambiguous node, i.e.RESOLVEDRepresents a resolved node that was not made visible by a visibility bridge.UNRESOLVEDRepresents an unresolved node.VISIBLERepresents a resolved node that was made visible by a visibility bridge.
-
Field Summary
Fields Modifier and Type Field Description private booleanmadeVisibletrueif this sort represents a node that was made by a visibility bridge.private booleanresolvedtrueif this sort represents a resolved node.private booleanuniquetrueif this sort represents a non-ambiguous node.
-
Constructor Summary
Constructors Modifier Constructor Description privateSort(boolean resolved, boolean unique, boolean madeVisible)Creates a new sort.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMadeVisible()Verifies if this sort represents a node that was made visible by a visibility bridge.booleanisResolved()Verifies if this sort represents a resolved node.booleanisUnique()Verifies if this sort represents a non-ambiguous node.static MethodGraph.Node.SortvalueOf(java.lang.String name)Returns 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 Detail
-
VISIBLE
public static final MethodGraph.Node.Sort VISIBLE
Represents a resolved node that was made visible by a visibility bridge.
-
RESOLVED
public static final MethodGraph.Node.Sort RESOLVED
Represents a resolved node that was not made visible by a visibility bridge.
-
AMBIGUOUS
public static final MethodGraph.Node.Sort AMBIGUOUS
Represents an ambiguous node, i.e. a node that might refer to several methods.
-
UNRESOLVED
public static final MethodGraph.Node.Sort UNRESOLVED
Represents an unresolved node.
-
-
Field Detail
-
resolved
private final boolean resolved
trueif this sort represents a resolved node.
-
unique
private final boolean unique
trueif this sort represents a non-ambiguous node.
-
madeVisible
private final boolean madeVisible
trueif this sort represents a node that was made by a visibility bridge.
-
-
Constructor Detail
-
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 Detail
-
values
public static MethodGraph.Node.Sort[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodGraph.Node.Sort c : MethodGraph.Node.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodGraph.Node.Sort valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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.
-
-