Class GlslFunctionNode
java.lang.Object
io.github.ocelot.glslprocessor.api.node.function.GlslFunctionNode
- All Implemented Interfaces:
GlslNode,GlslRootNode
Defines a function in a GLSL file with an optional body.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGlslFunctionNode(GlslFunctionHeader header, @Nullable Collection<GlslNode> body) -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable GlslNodeListgetBody()@NotNull StringgetName()inthashCode()booleansetBody(@Nullable Collection<GlslNode> body) Sets the body of this function ornullto make this a function prototype.voidsetHeader(GlslFunctionHeader header) Sets the function header of this function to the specified value.stream()toString()voidvisit(GlslFunctionVisitor visitor) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.ocelot.glslprocessor.api.node.GlslNode
getType, setBody, toListMethods inherited from interface io.github.ocelot.glslprocessor.api.node.GlslRootNode
asDeclaration, asField, asFunction, asStruct, isDeclaration, isField, isFunction, isStruct
-
Constructor Details
-
GlslFunctionNode
-
-
Method Details
-
visit
-
getHeader
- Returns:
- The full signature of this function
-
getName
- Specified by:
getNamein interfaceGlslRootNode
-
getReturnType
- Returns:
- The return type of the function
-
getParameters
- Returns:
- The parameters of the function
-
getBody
-
setHeader
Sets the function header of this function to the specified value.- Parameters:
header- The new header
-
setName
- Specified by:
setNamein interfaceGlslRootNode
-
setBody
Sets the body of this function ornullto make this a function prototype. -
getSourceString
- Specified by:
getSourceStringin interfaceGlslNode
-
stream
-
equals
-
hashCode
public int hashCode() -
toString
-