Package limn.render3d.shader
Record Class Expr.Call
java.lang.Object
java.lang.Record
limn.render3d.shader.Expr.Call
- All Implemented Interfaces:
Expr
- Enclosing interface:
Expr
public static record Expr.Call(String function, ShaderType type, List<Expr> args)
extends Record
implements Expr
A built-in or engine helper call with a declared result type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface limn.render3d.shader.Expr
Expr.Binary, Expr.Call, Expr.Construct, Expr.Lit, Expr.Op, Expr.Raw, Expr.Ref, Expr.Sample, Expr.Swizzle -
Constructor Summary
ConstructorsConstructorDescriptionCall(String function, ShaderType type, List<Expr> args) Creates an instance of aCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Call
Creates an instance of aCallrecord class.- Parameters:
function- the value for thefunctionrecord componenttype- the value for thetyperecord componentargs- the value for theargsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
function
Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-
type
Returns the value of thetyperecord component. -
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-