Table of Contents

Class ConsumerBuilder

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

Builds code for ConsumerEndpoints.

public class ConsumerBuilder : BuilderBase<ConsumerEndpoint>, IBuilder<ConsumerEndpoint>, IBuilder
Inheritance
object
ConsumerBuilder
Implements
Inherited Members

Methods

ExtraArguments(ConsumerEndpoint, IEndpointGenerator)

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

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

Parameters

endpoint ConsumerEndpoint
generator IEndpointGenerator

Returns

IEnumerable<JvmExpression>

Remarks

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

GetBaseType(ConsumerEndpoint, IEndpointGenerator)

Returns the TypedRest implementation class the endpoint derives from.

protected override JvmIdentifier GetBaseType(ConsumerEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint ConsumerEndpoint
generator IEndpointGenerator

Returns

JvmIdentifier