public class ConditionParser
extends java.lang.Object
Constructor and Description |
---|
ConditionParser() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
extractDefines(java.lang.String expression)
Parses a condition and returns the list of defines of this condition.
|
java.lang.String |
getFormattedExpression() |
static void |
main(java.lang.String[] argv) |
public static void main(java.lang.String[] argv)
public java.util.List<java.lang.String> extractDefines(java.lang.String expression)
"(LightMap && SeparateTexCoord) || !ColorMap"
"#if (defined(LightMap) && defined(SeparateTexCoord)) || !defined(ColorMap)"
"#ifdef LightMap"
"#ifdef (LightMap && SeparateTexCoord) || !ColorMap"
expression
- the expression to parsepublic java.lang.String getFormattedExpression()