|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Option>
com.googlecode.jslint4java.Option
public enum Option
All available options for tuning the behaviour of JSLint. TODO Add a "Handler" class for each type, which knows whether it needs an arg, how to parse it, etc.
Enum Constant Summary | |
---|---|
ADSAFE
If adsafe should be enforced |
|
BITWISE
If bitwise operators should not be allowed |
|
BROWSER
If the standard browser globals should be predefined |
|
CAP
If upper case html should be allowed |
|
CSS
If css workarounds should be tolerated |
|
DEBUG
If debugger statements should be allowed |
|
DEVEL
If logging should be allowed (console, alert, etc.) |
|
EQEQEQ
If === should be required |
|
ES5
If es5 syntax should be allowed |
|
EVIL
If eval should be allowed |
|
FORIN
If for in statements must filter |
|
FRAGMENT
If html fragments should be allowed |
|
IMMED
If immediate invocations must be wrapped in parens |
|
INDENT
The number of spaces used for indentation (default is 4) |
|
LAXBREAK
If line breaks should not be checked |
|
MAXERR
The maximum number of warnings reported (default is 50) |
|
MAXLEN
Maximum line length |
|
NEWCAP
If constructor names must be capitalized |
|
NOMEN
If names should be checked |
|
ON
If html event handlers should be allowed |
|
ONEVAR
If only one var statement per function should be allowed |
|
PASSFAIL
If the scan should stop on first error |
|
PLUSPLUS
If increment/decrement should not be allowed |
|
PREDEF
The names of predefined global variables. |
|
REGEXP
If the . |
|
RHINO
If the rhino environment globals should be predefined |
|
SAFE
If use of some browser features should be restricted |
|
STRICT
Require the "use strict"; pragma |
|
SUB
If all forms of subscript notation are tolerated |
|
UNDEF
If variables should be declared before used |
|
WHITE
If strict whitespace rules apply |
|
WIDGET
If the yahoo widgets globals should be predefined |
|
WINDOWS
If ms windows-specigic globals should be predefined |
Method Summary | |
---|---|
String |
getDescription()
Return a description of what this option affects. |
String |
getLowerName()
Return the lowercase name of this option. |
Class<?> |
getType()
What type does the value of this option have? |
static int |
maximumNameLength()
Calculate the maximum length of all of the Option names. |
String |
toString()
Show this option and its description. |
static Option |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Option[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Option ADSAFE
public static final Option BITWISE
public static final Option BROWSER
public static final Option CAP
public static final Option CSS
public static final Option DEBUG
public static final Option DEVEL
public static final Option EQEQEQ
public static final Option ES5
public static final Option EVIL
public static final Option FORIN
public static final Option FRAGMENT
public static final Option IMMED
public static final Option INDENT
public static final Option LAXBREAK
public static final Option MAXERR
public static final Option MAXLEN
public static final Option NEWCAP
public static final Option NOMEN
public static final Option ON
public static final Option ONEVAR
public static final Option PASSFAIL
public static final Option PLUSPLUS
public static final Option PREDEF
public static final Option REGEXP
public static final Option RHINO
public static final Option SAFE
public static final Option STRICT
public static final Option SUB
public static final Option UNDEF
public static final Option WHITE
public static final Option WIDGET
public static final Option WINDOWS
Method Detail |
---|
public static final Option[] values()
for(Option c : Option.values()) System.out.println(c);
public static Option valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String getDescription()
public String getLowerName()
public Class<?> getType()
public static int maximumNameLength()
Option
names.
public String toString()
toString
in class Enum<Option>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |