public interface CefCommandLine
限定符和类型 | 方法和说明 |
---|---|
void |
appendArgument(java.lang.String argument)
Add an argument to the end of the command line.
在命令行的末尾添加一个参数
|
void |
appendSwitch(java.lang.String name)
Add a switch with an empty value to the end of the command line.
将一个空值的开关添加到命令行的末尾
|
void |
appendSwitchWithValue(java.lang.String name,
java.lang.String value)
Add a switch with the specified value to the end of the command line.
将具有指定值的开关添加到命令行的末尾
|
java.util.Vector<java.lang.String> |
getArguments()
Get the remaining command line arguments.
获取剩余的命令行参数
|
java.lang.String |
getProgram()
Get the program part of the command line string (the first item).
获取命令行字符串的程序部分(第一项)
|
java.util.Map<java.lang.String,java.lang.String> |
getSwitches()
Returns the map of switch names and values.
返回开关名称和值的映射
|
java.lang.String |
getSwitchValue(java.lang.String name)
Returns the value associated with the given switch.
返回与给定开关关联的值
|
boolean |
hasArguments()
Tests if there are remaining command line arguments.
测试是否有剩余的命令行参数
|
boolean |
hasSwitch(java.lang.String name)
Checks if the command line has a specific switches.
检查命令行是否具有特定的开关
|
boolean |
hasSwitches()
Checks if the command line has switches.
检查命令行是否有开关
|
void |
reset()
Reset the command-line switches and arguments but leave the program
component unchanged.
重置命令行开关和参数但保持程序组件不变
|
void |
setProgram(java.lang.String program)
Set the program part of the command line string (the first item).
设置命令行字符串的程序部分(第一项)
|
void appendArgument(java.lang.String argument)
argument
- name of the argument.void appendSwitch(java.lang.String name)
name
- name of the switch.void appendSwitchWithValue(java.lang.String name, java.lang.String value)
name
- name of the switch.value
- value for the switch.java.util.Vector<java.lang.String> getArguments()
java.lang.String getProgram()
java.util.Map<java.lang.String,java.lang.String> getSwitches()
java.lang.String getSwitchValue(java.lang.String name)
name
- the name of the switch.boolean hasArguments()
boolean hasSwitch(java.lang.String name)
name
- A switch name to test for.boolean hasSwitches()
void reset()
void setProgram(java.lang.String program)
program
- Name of the program.