Class CBGenericSerializerMethodRefs
java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.internal.generics.CBGenericSerializerMethodRefs
Functions to calculate or generate serializer method references.
-
Constructor Summary
ConstructorsConstructorDescriptionCBGenericSerializerMethodRefs(CBCGJavaNamePool inNames, CBTypeExpressionType inExpr, CBGenericSerializerMethodDirection inDirection) Create a method reference generator. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Find all lambda expressions inside the given method reference.
-
Constructor Details
-
CBGenericSerializerMethodRefs
public CBGenericSerializerMethodRefs(CBCGJavaNamePool inNames, CBTypeExpressionType inExpr, CBGenericSerializerMethodDirection inDirection) Create a method reference generator.- Parameters:
inNames- The local name poolinExpr- The root type expressioninDirection- The serialization method direction
-
-
Method Details
-
build
- Returns:
- A method reference for the root expression
-
findLambdasInDeclarationOrder
public static Deque<CBGenericSerializerMethodRefViaLambda> findLambdasInDeclarationOrder(CBGenericSerializerMethodRefType ref) Find all lambda expressions inside the given method reference. The lambdas are returned in declaration order.- Parameters:
ref- The reference- Returns:
- The stack of lambda expressions
-