public interface CefCommandLine
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendArgument(String argument)
Add an argument to the end of the command line.
|
void |
appendSwitch(String name)
Add a switch with an empty value to the end of the command line.
|
void |
appendSwitchWithValue(String name,
String value)
Add a switch with the specified value to the end of the command line.
|
Vector<String> |
getArguments()
Get the remaining command line arguments.
|
String |
getProgram()
Get the program part of the command line string (the first item).
|
Map<String,String> |
getSwitches()
Returns the map of switch names and values.
|
String |
getSwitchValue(String name)
Returns the value associated with the given switch.
|
boolean |
hasArguments()
Tests if there are remaining command line arguments.
|
boolean |
hasSwitch(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(String program)
Set the program part of the command line string (the first item).
|
void reset()
String getProgram()
void setProgram(String program)
program - Name of the program.boolean hasSwitches()
boolean hasSwitch(String name)
name - A switch name to test for.String getSwitchValue(String name)
name - the name of the switch.Map<String,String> getSwitches()
void appendSwitch(String name)
name - name of the switch.void appendSwitchWithValue(String name, String value)
name - name of the switch.value - value for the switch.boolean hasArguments()
Vector<String> getArguments()
void appendArgument(String argument)
argument - name of the argument.Copyright © 2017. All rights reserved.