public class ConfigurationInfo extends Object
ConfigurationBuffer.loadCache(java.lang.Class<? extends org.apache.flex.compiler.config.Configuration>, org.apache.flex.compiler.internal.config.IConfigurationFilter)
from either annotations or
public static ConfigurationInfo getFooInfo();
methods in
Configuration
class.Modifier and Type | Field and Description |
---|---|
protected String[] |
aliases |
protected boolean |
allowMultiple |
protected int |
argcount |
protected Class<?> |
argNameGeneratorClass |
protected String[] |
argnames |
protected Class<?>[] |
argtypes |
protected String[] |
defaultArgValues |
protected String |
deprecatedMessage |
protected String |
deprecatedReplacement |
protected String |
deprecatedSince |
static int |
INFINITE_ARGS |
protected boolean |
isAdvanced |
boolean |
isCompcOnly
True if only
compc client can use this option. |
protected boolean |
isDeprecated |
protected boolean |
isDisplayed |
protected boolean |
isFlexOnly |
protected boolean |
isGreedy |
protected boolean |
isHidden |
protected boolean |
isPath |
protected boolean |
isRemoved |
protected boolean |
isRequired |
static int |
NOT_SET |
protected String[] |
prerequisites |
protected String[] |
softPrerequisites |
Constructor and Description |
---|
ConfigurationInfo()
This ctor is used when everything can be introspected off the setter
method, or else when the names/types are provided by method overrides
rather than ctor arguments
|
ConfigurationInfo(int argcount)
Simple ctor for restricting the number of arguments.
|
ConfigurationInfo(int argcount,
String argname)
Use this ctor when you want to set a single list of some number of
identically named args
|
ConfigurationInfo(int argcount,
String[] argnames)
More unusual ctor, this would let you have the first few args named one
thing, the rest named something else.
|
ConfigurationInfo(String[] argnames)
Simple ctor for naming the arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowMultiple()
Variables are generally only allowed to be set once in a given
file/cmdline.
|
boolean |
doChecksum() |
String[] |
getAliases()
Return an array of other names for this variable.
|
int |
getArgCount() |
String |
getArgName(int argnum)
Return the name of each parameter.
|
Class<?> |
getArgType(int argnum)
Return the type of each parameter.
|
String[] |
getDefaultArgValues()
Get any default values for an argument
|
String |
getDeprecatedMessage() |
String |
getDeprecatedReplacement() |
String |
getDeprecatedSince() |
protected Method |
getGetterMethod() |
String[] |
getPrerequisites()
Return variable names that should be set before this one.
|
protected Method |
getSetterMethod() |
String[] |
getSoftPrerequisites()
Prerequisites which should be set before this one if they exist
|
boolean |
isAdvanced()
Override to make a variable hidden by default (i.e. you need -advanced on
the cmdline)
|
boolean |
isDeprecated() |
boolean |
isDisplayed()
Override to prevent printing when dumping configuration
|
boolean |
isFlexOnly() |
boolean |
isGreedy()
Magic used by the command line configurator only at the moment to decide
whether this variable should eat all subsequent arguments.
|
boolean |
isHidden()
Override to make a variable completely hidden
|
boolean |
isPath() |
boolean |
isRemoved() |
boolean |
isRequired()
If a variable -must- be set, override this
|
protected void |
setGetterMethod(Method getter) |
protected void |
setSetterMethod(Method setter) |
String |
toString() |
public static final int NOT_SET
public static final int INFINITE_ARGS
protected int argcount
protected String[] defaultArgValues
protected Class<?> argNameGeneratorClass
protected String[] argnames
protected Class<?>[] argtypes
protected String[] prerequisites
protected String[] softPrerequisites
protected boolean allowMultiple
protected String[] aliases
protected boolean isAdvanced
protected boolean isHidden
protected boolean isDisplayed
protected boolean isRequired
protected boolean isGreedy
protected boolean isPath
protected String deprecatedMessage
protected boolean isDeprecated
protected String deprecatedReplacement
protected String deprecatedSince
protected boolean isRemoved
protected boolean isFlexOnly
public boolean isCompcOnly
compc
client can use this option.public ConfigurationInfo()
public ConfigurationInfo(int argcount)
argcount
- number of args, -1 for an infinite listpublic ConfigurationInfo(String[] argnames)
argnames
- list of argnames, argcount will default to # of elementspublic ConfigurationInfo(int argcount, String argname)
argcount
- number of arguments (-1 for infinite)argname
- name of each argumentpublic ConfigurationInfo(int argcount, String[] argnames)
argcount
- number of argumentsargnames
- array of argument namespublic final int getArgCount()
public final String[] getDefaultArgValues()
public String getArgName(int argnum)
argnum
- The argument number.public final Class<?> getArgType(int argnum)
argnum
- The argument number.public String[] getPrerequisites()
public String[] getSoftPrerequisites()
public boolean allowMultiple()
public String[] getAliases()
public boolean isAdvanced()
public boolean isHidden()
public boolean isDisplayed()
public boolean isRequired()
public boolean isGreedy()
public boolean isPath()
public boolean doChecksum()
public String getDeprecatedMessage()
public boolean isDeprecated()
public String getDeprecatedReplacement()
public String getDeprecatedSince()
public boolean isRemoved()
public boolean isFlexOnly()
protected final void setSetterMethod(Method setter)
protected final Method getSetterMethod()
protected final void setGetterMethod(Method getter)
protected final Method getGetterMethod()
Copyright © 2016 The Apache Software Foundation. All rights reserved.