Package net.bytebuddy.dynamic
Enum DynamicType.Default.Dispatcher.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<DynamicType.Default.Dispatcher.ForLegacyVm>
-
- net.bytebuddy.dynamic.DynamicType.Default.Dispatcher.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DynamicType.Default.Dispatcher.ForLegacyVm>
,DynamicType.Default.Dispatcher
- Enclosing interface:
- DynamicType.Default.Dispatcher
public static enum DynamicType.Default.Dispatcher.ForLegacyVm extends java.lang.Enum<DynamicType.Default.Dispatcher.ForLegacyVm> implements DynamicType.Default.Dispatcher
A legacy dispatcher that is not capable of NIO.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Default.Dispatcher
DynamicType.Default.Dispatcher.CreationAction, DynamicType.Default.Dispatcher.ForJava7CapableVm, DynamicType.Default.Dispatcher.ForLegacyVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
copy(java.io.File source, java.io.File target)
Copies the source file to the target location.static DynamicType.Default.Dispatcher.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DynamicType.Default.Dispatcher.ForLegacyVm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DynamicType.Default.Dispatcher.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static DynamicType.Default.Dispatcher.ForLegacyVm[] 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 (DynamicType.Default.Dispatcher.ForLegacyVm c : DynamicType.Default.Dispatcher.ForLegacyVm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicType.Default.Dispatcher.ForLegacyVm 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
-
copy
public boolean copy(java.io.File source, java.io.File target) throws java.io.IOException
Copies the source file to the target location.- Specified by:
copy
in interfaceDynamicType.Default.Dispatcher
- Parameters:
source
- The source file.target
- The target file.- Returns:
true
if the source file needs to be deleted.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-