Package de.dytanic.cloudnet.launcher.cnl
Class CNLInterpreter
- java.lang.Object
-
- de.dytanic.cloudnet.launcher.cnl.CNLInterpreter
-
public class CNLInterpreter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CNLInterpreter()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclearCommands()static voidregisterCommand(CNLCommand command)static voidrunCommand(java.util.Map<java.lang.String,java.lang.String> variables, java.lang.String commandLine)static voidrunInterpreter(java.io.File file)Deprecated.static voidrunInterpreter(java.io.File file, java.util.Map<java.lang.String,java.lang.String> variables)Deprecated.static voidrunInterpreter(java.io.InputStream inputStream)static voidrunInterpreter(java.io.InputStreamReader inputStreamReader)static voidrunInterpreter(java.io.InputStreamReader inputStreamReader, java.util.Map<java.lang.String,java.lang.String> variables)static voidrunInterpreter(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.String> variables)static voidrunInterpreter(java.nio.file.Path path)static voidrunInterpreter(java.nio.file.Path path, java.util.Map<java.lang.String,java.lang.String> variables)
-
-
-
Method Detail
-
registerCommand
public static void registerCommand(CNLCommand command)
-
clearCommands
public static void clearCommands()
-
runInterpreter
public static void runInterpreter(java.nio.file.Path path) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
public static void runInterpreter(java.nio.file.Path path, java.util.Map<java.lang.String,java.lang.String> variables) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
@Deprecated public static void runInterpreter(java.io.File file) throws java.io.IOException, CNLCommandExecuteExceptionDeprecated.- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
@Deprecated public static void runInterpreter(java.io.File file, java.util.Map<java.lang.String,java.lang.String> variables) throws java.io.IOException, CNLCommandExecuteExceptionDeprecated.- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
public static void runInterpreter(java.io.InputStream inputStream) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
public static void runInterpreter(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.String> variables) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
public static void runInterpreter(java.io.InputStreamReader inputStreamReader) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runInterpreter
public static void runInterpreter(java.io.InputStreamReader inputStreamReader, java.util.Map<java.lang.String,java.lang.String> variables) throws java.io.IOException, CNLCommandExecuteException- Throws:
java.io.IOExceptionCNLCommandExecuteException
-
runCommand
public static void runCommand(java.util.Map<java.lang.String,java.lang.String> variables, java.lang.String commandLine) throws CNLCommandExecuteException- Throws:
CNLCommandExecuteException
-
-