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.
(-程序名称。)