A B C D E F G H I L M N O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addDependency(String, String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Add a symbol dependency.
- addDependency(String, String, String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Add a symbol dependency.
- addDependency(SymbolDependencyContainer) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Add a symbol dependency.
- addReference(Symbol) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Add a symbol reference to indicate that this symbol points to or contains references to other symbols.
- addReference(SymbolReference) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Add a symbol reference to indicate that this symbol points to or contains references to other symbols.
- alias(String) - Method in class software.amazon.smithy.codegen.core.SymbolReference.Builder
-
Adds an alias to the SymbolReference.
B
- build() - Method in class software.amazon.smithy.codegen.core.MappedReservedWords.Builder
-
Builds the reserved words.
- build() - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Builds the reserved words.
- build() - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Builds a
SymbolProvider
implementation that wraps another symbol provider and escapes its results. - build() - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
- build() - Method in class software.amazon.smithy.codegen.core.SymbolDependency.Builder
- build() - Method in class software.amazon.smithy.codegen.core.SymbolReference.Builder
- builder() - Static method in class software.amazon.smithy.codegen.core.MappedReservedWords
- builder() - Static method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider
-
Builder to create a ReservedWordSymbolProvider instance.
- builder() - Static method in class software.amazon.smithy.codegen.core.Symbol
-
Creates a new Symbol builder.
- builder() - Static method in class software.amazon.smithy.codegen.core.SymbolDependency
- builder() - Static method in class software.amazon.smithy.codegen.core.SymbolReference
- Builder() - Constructor for class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
- Builder() - Constructor for class software.amazon.smithy.codegen.core.Symbol.Builder
- buildEscaper() - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Builds a
SymbolProvider.Escaper
that is used to manually escapeSymbol
s and member names.
C
- cache(SymbolProvider) - Static method in interface software.amazon.smithy.codegen.core.SymbolProvider
-
Decorates a
SymbolProvider
with a cache and returns the decoratedSymbolProvider
. - CodegenException - Exception in software.amazon.smithy.codegen.core
-
Thrown when an error occurs during code generation.
- CodegenException(String) - Constructor for exception software.amazon.smithy.codegen.core.CodegenException
- CodegenException(String, Throwable) - Constructor for exception software.amazon.smithy.codegen.core.CodegenException
- CodegenException(Throwable) - Constructor for exception software.amazon.smithy.codegen.core.CodegenException
- compareTo(SymbolDependency) - Method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Dependencies can be sorted based on the natural sort order of the dependencyType, packageName, and finally the version.
- compose(ReservedWords...) - Static method in interface software.amazon.smithy.codegen.core.ReservedWords
-
Composes multiple instance of
ReservedWords
into a single implementation that delegates to them one after the other.
D
- declarationFile(String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Sets the filename of where this symbol is declared.
- DECLARE - software.amazon.smithy.codegen.core.SymbolReference.ContextOption
-
Indicates that the referenced symbol is needed when declaring the symbol.
- definitionFile(String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Sets the filename of where this symbol is defined.
- dependencies(List<SymbolDependency>) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Replaces the symbol dependencies of the symbol.
- dependencies(SymbolDependencyContainer) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Replaces the symbol dependencies of the symbol.
- dependencyType(String) - Method in class software.amazon.smithy.codegen.core.SymbolDependency.Builder
-
Sets the type of dependency (for example, "dev", "optional", etc).
E
- equals(Object) - Method in class software.amazon.smithy.codegen.core.Symbol
- equals(Object) - Method in class software.amazon.smithy.codegen.core.SymbolDependency
- equals(Object) - Method in class software.amazon.smithy.codegen.core.SymbolReference
- escape(String) - Method in class software.amazon.smithy.codegen.core.MappedReservedWords
- escape(String) - Method in interface software.amazon.smithy.codegen.core.ReservedWords
-
Escapes a reserved word.
- escapeMemberName(String) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Escaper
-
Escapes the given member name if needed.
- escapePredicate(BiPredicate<Shape, Symbol>) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets a predicate that is used to control when a shape + symbol combination should be checked if it's a reserved word.
- escapeSymbol(Shape, Symbol) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Escaper
-
Escapes the given symbol using the reserved words implementations registered for each component.
F
- filenameReservedWords(ReservedWords) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets the reserved word implementation for file names.
G
- gatherDependencies(Stream<SymbolDependency>) - Static method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Gets a mapping of all dependencies used by the provided symbols.
- gatherDependencies(Stream<SymbolDependency>, BinaryOperator<SymbolDependency>) - Static method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Gets a mapping of all dependencies used by the provided symbols.
- getAlias() - Method in class software.amazon.smithy.codegen.core.SymbolReference
-
Gets the alias to use when referring to the Symbol.
- getDeclarationFile() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Gets the location/filename in which the symbol is declared.
- getDefinitionFile() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Gets the location/filename in which the symbol is defined.
- getDependencies() - Method in class software.amazon.smithy.codegen.core.Symbol
- getDependencies() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
- getDependencies() - Method in interface software.amazon.smithy.codegen.core.SymbolDependencyContainer
-
Gets the list of dependencies that this object introduces.
- getDependencies() - Method in class software.amazon.smithy.codegen.core.SymbolReference
- getDependencyType() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Gets the type of dependency (for example, "dev", "optional", etc).
- getFullName() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Gets the full name of the symbol.
- getName() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Gets the unqualified name of the symbol, that is, a name with namespace.
- getNamespace() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Provides the namespace of the symbol or "" if empty.
- getNamespaceDelimiter() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Provides the namespace delimiter of the symbol or "" if empty.
- getOptions() - Method in class software.amazon.smithy.codegen.core.SymbolReference
-
Gets all of the reference options.
- getPackageName() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Gets the package name referenced by the dependency.
- getReferences() - Method in class software.amazon.smithy.codegen.core.Symbol
-
Gets the list of symbols that are referenced by this symbol.
- getSymbol() - Method in class software.amazon.smithy.codegen.core.SymbolReference
-
Gets the referenced symbol.
- getSymbols() - Method in class software.amazon.smithy.codegen.core.Symbol
- getSymbols() - Method in interface software.amazon.smithy.codegen.core.SymbolContainer
-
Returns any
Symbol
objects contained in the object. - getSymbols() - Method in class software.amazon.smithy.codegen.core.SymbolReference
- getVersion() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
-
Gets the version string of the dependency.
H
- hashCode() - Method in class software.amazon.smithy.codegen.core.Symbol
- hashCode() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
- hashCode() - Method in class software.amazon.smithy.codegen.core.SymbolReference
- hasOption(SymbolReference.Option) - Method in class software.amazon.smithy.codegen.core.SymbolReference
-
Checks if the given option is set on the symbol.
I
- identity() - Static method in interface software.amazon.smithy.codegen.core.ReservedWords
-
Creates a reserved word implementation that does not modify words.
- isReserved(String) - Method in class software.amazon.smithy.codegen.core.MappedReservedWords
- isReserved(String) - Method in interface software.amazon.smithy.codegen.core.ReservedWords
-
Checks if the given word is reserved.
L
- loadCaseInsensitiveWords(URL) - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Load a list of case-insensitive, line-delimited reserved words from a file.
- loadCaseInsensitiveWords(URL, Function<String, String>) - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Load a list of case-insensitive, line-delimited reserved words from a file.
- loadWords(URL) - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Load a list of case-sensitive, line-delimited reserved words from a file.
- loadWords(URL, Function<String, String>) - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Load a list of case-sensitive, line-delimited reserved words from a file.
M
- MappedReservedWords - Class in software.amazon.smithy.codegen.core
-
A reserved words implementation that maps known words to other words.
- MappedReservedWords(Map<String, String>, Map<String, String>) - Constructor for class software.amazon.smithy.codegen.core.MappedReservedWords
- MappedReservedWords.Builder - Class in software.amazon.smithy.codegen.core
-
Builder to create a new
MappedReservedWords
instance. - memberReservedWords(ReservedWords) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets the reserved word implementation for members.
N
- name(String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Sets the unqualified name of the symbol.
- nameReservedWords(ReservedWords) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets the reserved word implementation for names (structures names, class names, etc.).
- namespace(String, String) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Sets the namespace and namespace delimiter of the symbol.
- namespaceReservedWords(ReservedWords) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets the reserved word implementation for namespace names.
O
- options(Set<SymbolReference.Option>) - Method in class software.amazon.smithy.codegen.core.SymbolReference.Builder
-
Adds a Set of Options to the SymbolReference.
- options(SymbolReference.Option...) - Method in class software.amazon.smithy.codegen.core.SymbolReference.Builder
-
Adds an array of Options to the SymbolReference.
P
- packageName(String) - Method in class software.amazon.smithy.codegen.core.SymbolDependency.Builder
-
Sets the package name of the dependency.
- put(String, String) - Method in class software.amazon.smithy.codegen.core.MappedReservedWords.Builder
-
Add a new reserved words.
- put(String, String) - Method in class software.amazon.smithy.codegen.core.ReservedWordsBuilder
-
Add a new reserved words.
- putCaseInsensitive(String, String) - Method in class software.amazon.smithy.codegen.core.MappedReservedWords.Builder
-
Add a new case-insensitive reserved word that converts the given reserved word to the given conversion string.
R
- references(List<SymbolReference>) - Method in class software.amazon.smithy.codegen.core.Symbol.Builder
-
Replaces the symbol references to the symbol.
- relativize(String) - Method in class software.amazon.smithy.codegen.core.Symbol
-
Creates a relativized Symbol for the given namespace.
- ReservedWords - Interface in software.amazon.smithy.codegen.core
-
Determines what is reserved and escapes reserved words.
- ReservedWordsBuilder - Class in software.amazon.smithy.codegen.core
-
Builds a
ReservedWords
implementation from explicit mappings and from line-delimited files that contain reserved words. - ReservedWordsBuilder() - Constructor for class software.amazon.smithy.codegen.core.ReservedWordsBuilder
- ReservedWordSymbolProvider - Class in software.amazon.smithy.codegen.core
-
Decorates a
SymbolProvider
by passing values through context specificReservedWords
implementations. - ReservedWordSymbolProvider.Builder - Class in software.amazon.smithy.codegen.core
-
Builder to build a
ReservedWordSymbolProvider
. - ReservedWordSymbolProvider.Escaper - Class in software.amazon.smithy.codegen.core
-
Uses to manually escape
Symbol
s and member names.
S
- software.amazon.smithy.codegen.core - package software.amazon.smithy.codegen.core
-
Defines abstractions for implementing Smithy model code generation.
- symbol(Symbol) - Method in class software.amazon.smithy.codegen.core.SymbolReference.Builder
-
Sets the Symbol referenced by the SymbolReference.
- Symbol - Class in software.amazon.smithy.codegen.core
-
A "symbol" is created by a
SymbolProvider
, and represents the qualified name of a type in a target programming language. - Symbol.Builder - Class in software.amazon.smithy.codegen.core
-
Builds a Symbol.
- SymbolContainer - Interface in software.amazon.smithy.codegen.core
-
A holder for
Symbol
objects. - SymbolDependency - Class in software.amazon.smithy.codegen.core
-
Represents a dependency that is introduced by a
Symbol
. - SymbolDependency.Builder - Class in software.amazon.smithy.codegen.core
-
Builds a SymbolDependency.
- SymbolDependencyContainer - Interface in software.amazon.smithy.codegen.core
-
A container for
SymbolDependency
objects. - symbolProvider(SymbolProvider) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Builder
-
Sets the delegate symbol provider.
- SymbolProvider - Interface in software.amazon.smithy.codegen.core
-
Provides
Symbol
objects for shapes. - SymbolReference - Class in software.amazon.smithy.codegen.core
-
Represents a reference from a Symbol to another Symbol.
- SymbolReference(Symbol, Map<String, Object>, SymbolReference.Option...) - Constructor for class software.amazon.smithy.codegen.core.SymbolReference
- SymbolReference(Symbol, SymbolReference.Option...) - Constructor for class software.amazon.smithy.codegen.core.SymbolReference
- SymbolReference.Builder - Class in software.amazon.smithy.codegen.core
-
Builds a SymbolReference.
- SymbolReference.ContextOption - Enum in software.amazon.smithy.codegen.core
-
Options used to control the context of when the symbol reference is needed.
- SymbolReference.Option - Interface in software.amazon.smithy.codegen.core
-
Top-level interface for all
SymbolReference
options.
T
- toBuilder() - Method in class software.amazon.smithy.codegen.core.Symbol
- toBuilder() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
- toBuilder() - Method in class software.amazon.smithy.codegen.core.SymbolReference
- toMemberName(MemberShape) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider
- toMemberName(MemberShape) - Method in interface software.amazon.smithy.codegen.core.SymbolProvider
-
Converts a member shape to a member/property name of a containing data structure.
- toString() - Method in class software.amazon.smithy.codegen.core.Symbol
- toString() - Method in class software.amazon.smithy.codegen.core.SymbolDependency
- toString() - Method in class software.amazon.smithy.codegen.core.SymbolReference
- toSymbol(Shape) - Method in class software.amazon.smithy.codegen.core.ReservedWordSymbolProvider
- toSymbol(Shape) - Method in interface software.amazon.smithy.codegen.core.SymbolProvider
-
Gets the symbol to define for the given shape.
U
- USE - software.amazon.smithy.codegen.core.SymbolReference.ContextOption
-
Indicates that the referenced symbol is needed when importing/using the symbol.
V
- valueOf(String) - Static method in enum software.amazon.smithy.codegen.core.SymbolReference.ContextOption
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum software.amazon.smithy.codegen.core.SymbolReference.ContextOption
-
Returns an array containing the constants of this enum type, in the order they are declared.
- version(String) - Method in class software.amazon.smithy.codegen.core.SymbolDependency.Builder
-
Sets the version string of the dependency.
All Classes All Packages