Class GlslStructSpecifier
java.lang.Object
io.github.ocelot.glslprocessor.api.grammar.GlslStructSpecifier
- All Implemented Interfaces:
GlslType,GlslTypeSpecifier
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.ocelot.glslprocessor.api.grammar.GlslTypeSpecifier
GlslTypeSpecifier.Array, GlslTypeSpecifier.BuiltinType, GlslTypeSpecifier.Name -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleangetName()inthashCode()booleanisStruct()setFields(GlslStructField... fields) Sets the fields in this struct.setFields(Collection<GlslStructField> fields) Sets the fields in this struct.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.ocelot.glslprocessor.api.grammar.GlslTypeSpecifier
asSpecifiedType, asStructSpecifier, isNamed
-
Method Details
-
getName
- Specified by:
getNamein interfaceGlslTypeSpecifier- Returns:
- The GLSL name of this type
-
getFields
-
setName
-
setFields
Sets the fields in this struct.- Parameters:
fields- The new fields to use
-
setFields
Sets the fields in this struct.- Parameters:
fields- The new fields to use
-
copy
- Returns:
- A deep copy of this struct
-
isStruct
public boolean isStruct()- Specified by:
isStructin interfaceGlslTypeSpecifier- Returns:
- If this type is
GlslStructSpecifieror anGlslTypeSpecifier.Arrayof GlslStructSpecifier
-
equals
-
hashCode
public int hashCode() -
toString
-