Class DefaultBuilder
- Namespace
- TypedRest.CodeGeneration.Jvm.Endpoints
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Builds code for endpoints with no more specific kind.
public class DefaultBuilder : BuilderBase<Endpoint>, IBuilder<Endpoint>, IBuilder
- Inheritance
-
objectDefaultBuilder
- Implements
- Inherited Members
Properties
RequiresGeneratedClass
Indicates whether this kind of endpoint needs a generated class even when it has no children.
protected override bool RequiresGeneratedClass { get; }
Property Value
Remarks
Most kinds map to a concrete TypedRest class, which is simply constructed inline where there are no children to hold. Override this where the base type cannot be instantiated.
RequiresUriObject
Indicates whether the base type takes the relative URI as a URI rather than a String.
protected override bool RequiresUriObject { get; }
Property Value
Remarks
Every Impl class has a secondary constructor taking a String. Override this where the base
type has only the URI one, so that the literal gets wrapped.
Methods
GetBaseType(Endpoint, IEndpointGenerator)
Returns the TypedRest implementation class the endpoint derives from.
protected override JvmIdentifier GetBaseType(Endpoint endpoint, IEndpointGenerator generator)
Parameters
endpointEndpointgeneratorIEndpointGenerator