Enum Class GlslNodeType
- All Implemented Interfaces:
Serializable,Comparable<GlslNodeType>,Constable
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAND:&Assignment:A = B, A *= B, etcBoolean constant:bool a = false, etcComparison:A > B, A <= B, etcTernary operator:A ? B : CDouble constant:double a = 4.0lf, etcFloat constant:float a = 4.0, etcFunction Declaration:float myCustomFunction(float input) { return input }Array Get:floatArray[0], etcField Get:variable.test, etcIf/Else Condition:if(A) {B} else {C}Integer constant:int a = 4, etcInvoke Function:myCustomFunction(24), length(vec2(1.0, 1.0)), etcLogical AND:&&Logical OR:||Logical Exclusive OR:^^New Field:float a = 42, vec4 test;etcOperand:A * B, A >> B, A + B, etcInclusive OR:|GLSL precision:precision highp float; precision lowp int;etcType Constructor:int(42), vec4(1.0, 1.0, 1.0, 0.0), etcNew struct:struct A {...}, etcUnary Operator:A++, -A, !A, etcVariable Reference (can be get, set, unary, etc based on what node is used):variableName, etcVariable Declaration:float a, b, c, d; etcExclusive OR:^ -
Method Summary
Modifier and TypeMethodDescriptionstatic GlslNodeTypeReturns the enum constant of this class with the specified name.static GlslNodeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOR_LOOP
-
WHILE_LOOP
-
CONTINUE
-
BREAK
-
DISCARD
-
RETURN
-
IF_ELSE
If/Else Condition:if(A) {B} else {C} -
SWITCH
-
CASE_LABEL
-
AND
AND:& -
OR
Inclusive OR:| -
XOR
Exclusive OR:^ -
LOGICAL_AND
Logical AND:&& -
LOGICAL_OR
Logical OR:|| -
LOGICAL_XOR
Logical Exclusive OR:^^ -
ASSIGN
Assignment:A = B, A *= B, etc -
OPERATION
Operand:A * B, A >> B, A + B, etc -
COMPARE
Comparison:A > B, A <= B, etc -
CONDITIONAL
Ternary operator:A ? B : C -
PRECISION
GLSL precision:precision highp float; precision lowp int;etc -
UNARY
Unary Operator:A++, -A, !A, etc -
FUNCTION
Function Declaration:float myCustomFunction(float input) { return input } -
INVOKE_FUNCTION
Invoke Function:myCustomFunction(24), length(vec2(1.0, 1.0)), etc -
PRIMITIVE_CONSTRUCTOR
Type Constructor:int(42), vec4(1.0, 1.0, 1.0, 0.0), etc -
DOUBLE_CONSTANT
Double constant:double a = 4.0lf, etc -
FLOAT_CONSTANT
Float constant:float a = 4.0, etc -
INT_CONSTANT
Integer constant:int a = 4, etc -
BOOL_CONSTANT
Boolean constant:bool a = false, etc -
VARIABLE_DECLARATION
Variable Declaration:float a, b, c, d; etc -
GET_ARRAY
Array Get:floatArray[0], etc -
GET_FIELD
Field Get:variable.test, etc -
NEW_FIELD
New Field:float a = 42, vec4 test;etc -
STRUCT_DECLARATION
New struct:struct A {...}, etc -
VARIABLE
Variable Reference (can be get, set, unary, etc based on what node is used):variableName, etc
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-