Table of Contents

Class FunctionBuilder

Namespace
TypedRest.CodeGeneration.Jvm.Endpoints
Assembly
TypedRest.CodeGeneration.Jvm.dll

Builds code for FunctionEndpoints.

public class FunctionBuilder : BuilderBase<FunctionEndpoint>, IBuilder<FunctionEndpoint>, IBuilder
Inheritance
object
FunctionBuilder
Implements
Inherited Members

Methods

ExtraArguments(FunctionEndpoint, IEndpointGenerator)

Returns the constructor arguments beyond the referrer and the relative URI.

protected override IEnumerable<JvmExpression> ExtraArguments(FunctionEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint FunctionEndpoint
generator IEndpointGenerator

Returns

IEnumerable<JvmExpression>

Remarks

Most JVM endpoints take a Class<T> for the entity they deserialize.

GetBaseType(FunctionEndpoint, IEndpointGenerator)

Returns the TypedRest implementation class the endpoint derives from.

protected override JvmIdentifier GetBaseType(FunctionEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint FunctionEndpoint
generator IEndpointGenerator

Returns

JvmIdentifier