本文整理汇总了Java中com.sun.squawk.VM.setVeryVerbose方法的典型用法代码示例。如果您正苦于以下问题:Java VM.setVeryVerbose方法的具体用法?Java VM.setVeryVerbose怎么用?Java VM.setVeryVerbose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.squawk.VM
的用法示例。
在下文中一共展示了VM.setVeryVerbose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parseArgs
import com.sun.squawk.VM; //导入方法依赖的package包/类
/**
* Parses the command line arguments to configure an execution of the mapper.
*
* @param args the command line arguments
* @return boolean true if there were no errors in the arguments
*/
private boolean parseArgs(String[] args)
throws IOException {
bootstrapSuitePath = "squawk.suite";
int argc = 0;
for (; argc != args.length; ++argc) {
String arg = args[argc];
if (arg.charAt(0) != '-') {
break;
}
if (arg.startsWith("-boot:")) {
bootstrapSuitePath = arg.substring("-boot:".length());
} else if (arg.startsWith("-suitepath:")) {
String path = arg.substring("-suitepath:".length());
ObjectMemoryLoader.setFilePath(path);
} else if (arg.startsWith("-o:")) {
outFile = arg.substring("-o:".length());
} else if (arg.startsWith("-endian:")) {
String value = arg.substring("-endian:".length());
if (value.equals("big")) {
bigEndian = Boolean.TRUE;
} else if (value.equals("little")) {
bigEndian = Boolean.FALSE;
} else {
usage("invalid endianess: " + value);
return false;
}
} else if (arg.equals("-verbose") | arg.equals("-v")) {
VM.setVerbose(true);
VM.setVeryVerbose(true);
} else if (arg.equals("-c")) {
generateRelocatableCArray = true;
} else if (arg.equals("-S")) {
generateRelocatableArrayInAsm = true;
} else if (arg.equals("-h")) {
usage(null);
return false;
} else {
usage("unknown option: " + arg);
return false;
}
}
if (args.length - argc != 2) {
usage("missing suite file and/or relocation address");
return false;
}
suiteFilePath = args[argc++];
if (outFile == null) {
outFile = suiteFilePath + ".bin";
}
try {
requiredRelocationAddress = parseAddress(args[argc++]);
if (args.length - argc == 2) { // app case
libraryAddress = parseAddress(args[argc++]); // ConfigPage.LIBRARY_VIRTUAL_ADDRESS
}
if (args.length - argc == 1) { // handles both library and app cases
bootstrapAddress = parseAddress(args[argc++]); // configPage.getBootstrapAddress()
}
} catch (NumberFormatException ex) {
usage("illegal hexadecimal relocation address");
return false;
}
// Set endianess
if (bigEndian == null) {
Suite.setIsTargetBigEndian(VM.isBigEndian(new File(suiteFilePath)));
} else {
Suite.setIsTargetBigEndian(bigEndian.booleanValue());
}
return true;
}