Class GlslFunctionHeader
java.lang.Object
io.github.ocelot.glslprocessor.api.grammar.GlslFunctionHeader
Information about a function definition, not including a body.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGlslFunctionHeader(String name, GlslType returnType, Collection<GlslParameterDeclaration> parameters) -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleangetName()inthashCode()setParameters(GlslParameterDeclaration... parameters) Sets the parameters in this function.setParameters(Collection<GlslParameterDeclaration> parameters) Sets the parameters in this function.setReturnType(GlslType returnType) toString()
-
Constructor Details
-
GlslFunctionHeader
public GlslFunctionHeader(String name, GlslType returnType, Collection<GlslParameterDeclaration> parameters)
-
-
Method Details
-
getName
-
getReturnType
-
getParameters
-
setName
-
setReturnType
-
setParameters
Sets the parameters in this function.- Parameters:
parameters- The new parameters to use
-
setParameters
Sets the parameters in this function.- Parameters:
parameters- The new parameters to use
-
copy
- Returns:
- A deep copy of this function header
-
equals
-
hashCode
public int hashCode() -
toString
-