Class GlslFunctionNode
java.lang.Object
foundry.veil.api.glsl.node.function.GlslFunctionNode
- All Implemented Interfaces:
GlslNode
,GlslRootNode
Defines a function in a GLSL file with an optional body.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlslFunctionNode
(GlslFunctionHeader header, @Nullable Collection<GlslNode> body) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable GlslNodeList
getBody()
@NotNull String
getName()
int
hashCode()
boolean
setBody
(@Nullable Collection<GlslNode> body) Sets the body of this function ornull
to make this a function prototype.void
setHeader
(GlslFunctionHeader header) Sets the function header of this function to the specified value.stream()
toString()
void
visit
(GlslFunctionVisitor visitor) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface foundry.veil.api.glsl.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:
getName
in 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:
setName
in interfaceGlslRootNode
-
setBody
Sets the body of this function ornull
to make this a function prototype. -
getSourceString
- Specified by:
getSourceString
in interfaceGlslNode
-
stream
-
equals
-
hashCode
public int hashCode() -
toString
-