Class GlslSpecifiedType
java.lang.Object
io.github.ocelot.glslprocessor.api.grammar.GlslSpecifiedType
- All Implemented Interfaces:
GlslType
Specifies the full operand of something in GLSL in addition to all qualifiers.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGlslSpecifiedType(GlslTypeSpecifier specifier) GlslSpecifiedType(GlslTypeSpecifier specifier, GlslTypeQualifier... qualifiers) GlslSpecifiedType(GlslTypeSpecifier specifier, Collection<GlslTypeQualifier> qualifiers) -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutId(String identifier, @Nullable GlslNode expression) Adds a layout id to the qualifier list, or adds to an existing layout.copy()booleaninthashCode()setQualifiers(GlslTypeQualifier... qualifiers) setQualifiers(Collection<GlslTypeQualifier> qualifiers) setSpecifier(GlslTypeSpecifier specifier) toString()
-
Constructor Details
-
GlslSpecifiedType
-
GlslSpecifiedType
-
GlslSpecifiedType
-
-
Method Details
-
getSpecifier
- Returns:
- The operand of the field, method, etc
-
addLayoutId
Adds a layout id to the qualifier list, or adds to an existing layout.- Parameters:
identifier- The name of the identifierexpression- The value to assign it to
-
getQualifiers
- Returns:
- The qualifiers applied to it, for example
layout()orflat
-
setSpecifier
-
setQualifiers
-
setQualifiers
-
copy
- Returns:
- A deep copy of this type
-
equals
-
hashCode
public int hashCode() -
toString
-
asSpecifiedType
- Specified by:
asSpecifiedTypein interfaceGlslType- Returns:
- This type represented as a specified type
-