Package delight.nashornsandbox.internal
Class RemoveComments
- java.lang.Object
-
- delight.nashornsandbox.internal.RemoveComments
-
public class RemoveComments extends java.lang.Object
Based on https://codegolf.stackexchange.com/questions/48326/remove-single-line-and-multiline-comments-from-string
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT
static int
ESCAPE
static int
MULTI_LINE
static int
ONE_LINE
static int
STRING
-
Constructor Summary
Constructors Constructor Description RemoveComments()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
perform(java.lang.String s)
-
-
-
Field Detail
-
DEFAULT
public static final int DEFAULT
- See Also:
- Constant Field Values
-
ESCAPE
public static final int ESCAPE
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
ONE_LINE
public static final int ONE_LINE
- See Also:
- Constant Field Values
-
MULTI_LINE
public static final int MULTI_LINE
- See Also:
- Constant Field Values
-
-