public static class AbstractTypeScriptClientCodegen.ParameterExpander extends Object
Generators may use this class when substituting URL-parameter-placeholders with generated code:
While parsing placeholders character-by-character, this class helps accumulating these characters and building the final placeholder name.
With the placeholder name, this class tries to find the parameter in the operation. The class then uses this parameter to build code that is usable by the generator.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTypeScriptClientCodegen.ParameterExpander.Location
Where the parameter is located in the request.
|
static class |
AbstractTypeScriptClientCodegen.ParameterExpander.ParamStyle
How the parameter is formatted/converted/encoded in the actual request.
|
| Constructor and Description |
|---|
ParameterExpander(CodegenOperation op,
Function<String,String> toParameterName) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendToParameterName(char c) |
String |
buildPathEntry() |
protected static String |
escapeForQuotedJSString(String string) |
protected String |
nullableQuotedJSString(@Nullable String string) |
public ParameterExpander(CodegenOperation op, Function<String,String> toParameterName)
Copyright © 2023. All rights reserved.