public abstract class AbstractProcessor extends Object implements Processor, Cloneable
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_DISCARD_BID
default bid for a file name that the processor recognizes but does not
process and does not want to fall through to the linker
|
static int |
DEFAULT_PROCESS_BID
default bid for a file name that the processor desires to process
|
限定符 | 构造器和说明 |
---|---|
protected |
AbstractProcessor(String[] sourceExtensions,
String[] headerExtensions) |
限定符和类型 | 方法和说明 |
---|---|
int |
bid(String inputFile)
Returns the bid of the processor for the file.
|
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env) |
protected Object |
clone() |
String[] |
getHeaderExtensions() |
abstract String |
getIdentifier()
Retrieve an identifier that identifies the specific version of the
compiler.
|
protected static String |
getIdentifier(String[] command,
String fallback)
Determines the identification of a command line processor by capture the
first line of its output for a specific command.
|
protected String |
getOSArch()
Gets the target operating system architecture
|
protected String |
getOSName()
Gets the target operating system name
|
String[] |
getSourceExtensions() |
protected boolean |
isDarwin()
Returns true if the target operating system is Mac OS X or Darwin.
|
protected boolean |
isWindows() |
String |
toString() |
createConfiguration, getLinker, getOutputFileNames
public static final int DEFAULT_DISCARD_BID
public static final int DEFAULT_PROCESS_BID
protected static String getIdentifier(String[] command, String fallback)
command
- array of command line arguments starting with executable
name. For example, { "cl" }fallback
- start of identifier if there is an error in executing the
commandpublic int bid(String inputFile)
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
changeEnvironment
在接口中 Processor
protected Object clone() throws CloneNotSupportedException
clone
在类中 Object
CloneNotSupportedException
public String[] getHeaderExtensions()
public abstract String getIdentifier()
Processor
getIdentifier
在接口中 Processor
protected String getOSArch()
protected String getOSName()
public String[] getSourceExtensions()
protected boolean isDarwin()
protected boolean isWindows()
Copyright © 2005-2017 NAR Maven Plugin developers. All Rights Reserved.