A B C D E F G H I L M N O P R S T U W 
All Classes All Packages

A

accept(T, U, V) - Method in interface software.amazon.smithy.utils.TriConsumer
Performs the operation on the given inputs.
alwaysTrue() - Static method in class software.amazon.smithy.utils.FunctionalUtils
Returns a Predicate that always returns true.
andThen(TriConsumer<? super T, ? super U, ? super V>) - Method in interface software.amazon.smithy.utils.TriConsumer
Returns a composed TriConsumer that performs, in sequence, this operation followed by the after operation.

B

br() - Method in class software.amazon.smithy.utils.SimpleParser
Skips spaces then expects that the next character is either the end of the expression or a line break (\n, \r\n, or \r).
build() - Method in interface software.amazon.smithy.utils.SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.

C

call(Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Allows calling out to arbitrary code for things like looping or conditional writes without breaking method chaining.
capitalize(String) - Static method in class software.amazon.smithy.utils.StringUtils
Capitalizes a String changing the first character to title case as per Character.toTitleCase(int).
CaseUtils - Class in software.amazon.smithy.utils
Provides support for camelCase, snake_case, and other kinds of case conversions.
closeBlock(String, Object...) - Method in class software.amazon.smithy.utils.CodeWriter
Closes a block of syntax by writing a newline, dedenting, then writing text.
CodeWriter - Class in software.amazon.smithy.utils
Helper class for generating code.
CodeWriter() - Constructor for class software.amazon.smithy.utils.CodeWriter
Creates a new CodeWriter that uses "\n" for a newline, four spaces for indentation, does not strip trailing whitespace, does not flatten multiple successive blank lines into a single blank line, and adds no trailing new line.
column() - Method in class software.amazon.smithy.utils.SimpleParser
Gets the current 1-based column number of the parser.
consumeRemainingCharactersOnLine() - Method in class software.amazon.smithy.utils.SimpleParser
Skips over the remaining characters on a line but does not consume the newline character (\n or \r\n).
consumeUntilNoLongerMatches(Predicate<Character>) - Method in class software.amazon.smithy.utils.SimpleParser
Reads a lexeme from the expression while the given predicate matches each peeked character.
copyOf(Collection<? extends T>) - Static method in class software.amazon.smithy.utils.ListUtils
Creates an immutable copy of the given list.
copyOf(Collection<? extends T>) - Static method in class software.amazon.smithy.utils.SetUtils
Creates an immutable copy of the given set.
copyOf(Map<? extends K, ? extends V>) - Static method in class software.amazon.smithy.utils.MapUtils
Creates an immutable copy of the given map.
createDefault() - Static method in class software.amazon.smithy.utils.CodeWriter
Creates a default instance of a CodeWriter that uses "\n" for newlines, flattens multiple successive blank lines into a single blank line, and adds a trailing new line if needed when converting the CodeWriter to a string.

D

decreaseNestingLevel() - Method in class software.amazon.smithy.utils.SimpleParser
Decreases the current nesting level of the parser.
dedent() - Method in class software.amazon.smithy.utils.CodeWriter
Removes one level of indentation from all lines.
dedent(int) - Method in class software.amazon.smithy.utils.CodeWriter
Removes a specific number of indentations from all lines.
disableNewlines() - Method in class software.amazon.smithy.utils.CodeWriter
Disables the automatic appending of newlines in the current state.

E

enableNewlines() - Method in class software.amazon.smithy.utils.CodeWriter
Enables the automatic appending of newlines in the current state.
entry(K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Creates an immutable Map.Entry from the given key and value.
eof() - Method in class software.amazon.smithy.utils.SimpleParser
Checks if the parser has reached the end of the expression.
equals(Object) - Method in class software.amazon.smithy.utils.MediaType
 
equals(Object) - Method in class software.amazon.smithy.utils.Pair
 
equals(String, String) - Static method in class software.amazon.smithy.utils.StringUtils
Compares two Strings, returning true if they represent equal sequences of characters.
escapeJavaString(Object, String) - Static method in class software.amazon.smithy.utils.StringUtils
 
expect(char) - Method in class software.amazon.smithy.utils.SimpleParser
Expects that the next character is the given character and consumes it.
expect(char...) - Method in class software.amazon.smithy.utils.SimpleParser
Expects that the next character is one of a fixed set of possible characters.
expression() - Method in class software.amazon.smithy.utils.SimpleParser
Gets the expression being parsed.

F

flatMapStream(L, Function<L, Optional<R>>) - Static method in class software.amazon.smithy.utils.Pair
Creates a Stream of zero or one Pairs if the mapping function returns a non-empty Optional.
flatMapStream(L, Supplier<Optional<R>>) - Static method in class software.amazon.smithy.utils.Pair
 
format(Object, Object...) - Method in class software.amazon.smithy.utils.CodeWriter
Creates a formatted string using formatter expressions and variadic arguments.
formatLiteral(Object) - Static method in class software.amazon.smithy.utils.CodeWriter
Provides the default functionality for formatting literal values.
from(String) - Static method in class software.amazon.smithy.utils.MediaType
Create a parsed MediaType from the given string.
FunctionalUtils - Class in software.amazon.smithy.utils
Utilities for working with functions, predicates, etc.

G

getContext(String) - Method in class software.amazon.smithy.utils.CodeWriter
Gets a named contextual key-value pair from the current state.
getExpressionStart() - Method in class software.amazon.smithy.utils.CodeWriter
Get the expression start character of the current state.
getKey() - Method in class software.amazon.smithy.utils.Pair
 
getLeft() - Method in class software.amazon.smithy.utils.Pair
 
getParameters() - Method in class software.amazon.smithy.utils.MediaType
Gets the immutable map of parameters.
getRight() - Method in class software.amazon.smithy.utils.Pair
 
getSubtype() - Method in class software.amazon.smithy.utils.MediaType
Gets the "subtype" of the media type.
getSubtypeWithoutSuffix() - Method in class software.amazon.smithy.utils.MediaType
Gets the "subtype" of the media type with no structured syntax suffix.
getSuffix() - Method in class software.amazon.smithy.utils.MediaType
Gets the optional structured syntax suffix.
getTags() - Method in interface software.amazon.smithy.utils.Tagged
Gets the tags applied to an object.
getType() - Method in class software.amazon.smithy.utils.MediaType
Gets the "type" of the media type.
getValue() - Method in class software.amazon.smithy.utils.Pair
 

H

hashCode() - Method in class software.amazon.smithy.utils.MediaType
 
hashCode() - Method in class software.amazon.smithy.utils.Pair
 
hasTag(String) - Method in interface software.amazon.smithy.utils.Tagged
Checks if the value has the given tag by name.

I

ifPresentOrElse(Optional<T>, Consumer<T>, Runnable) - Static method in class software.amazon.smithy.utils.OptionalUtils
Invokes a consumer if the Optional has a value, otherwise invoked a Runnable when the Optional is empty.
increaseNestingLevel() - Method in class software.amazon.smithy.utils.SimpleParser
Increases the current nesting level of the parser.
indent() - Method in class software.amazon.smithy.utils.CodeWriter
Indents all text one level.
indent(int) - Method in class software.amazon.smithy.utils.CodeWriter
Indents all text a specific number of levels.
insertTrailingNewline() - Method in class software.amazon.smithy.utils.CodeWriter
Configures the CodeWriter to always append a newline at the end of the text if one is not already present.
insertTrailingNewline(boolean) - Method in class software.amazon.smithy.utils.CodeWriter
Configures the CodeWriter to always append a newline at the end of the text if one is not already present.
IoUtils - Class in software.amazon.smithy.utils
Utilities for IO operations.
isBlank(CharSequence) - Static method in class software.amazon.smithy.utils.StringUtils
Checks if a CharSequence is empty (""), null or whitespace only.
isEmpty(CharSequence) - Static method in class software.amazon.smithy.utils.StringUtils
Checks if a CharSequence is empty ("") or null.
isJson(String) - Static method in class software.amazon.smithy.utils.MediaType
Detects if the given media type string is JSON, meaning it is "application/json" or uses the "+json" structured syntax suffix.
isNotBlank(CharSequence) - Static method in class software.amazon.smithy.utils.StringUtils
Checks if a CharSequence is not empty (""), not null and not whitespace only.

L

left - Variable in class software.amazon.smithy.utils.Pair
 
leftPad(String, int) - Static method in class software.amazon.smithy.utils.StringUtils
Left pad a String with spaces (' ').
leftPad(String, int, char) - Static method in class software.amazon.smithy.utils.StringUtils
Left pad a String with a specified character.
leftPad(String, int, String) - Static method in class software.amazon.smithy.utils.StringUtils
Left pad a String with a specified String.
levenshteinDistance(CharSequence, CharSequence, int) - Static method in class software.amazon.smithy.utils.StringUtils
Find the Levenshtein distance between two CharSequences if it's less than or equal to a given threshold.
line() - Method in class software.amazon.smithy.utils.SimpleParser
Gets the current 1-based line number of the parser.
ListUtils - Class in software.amazon.smithy.utils
Immutable List utilities to polyfill Java 9+ features.
lowerCase(String) - Static method in class software.amazon.smithy.utils.StringUtils
Converts a String to lower case as per String.toLowerCase().

M

MapUtils - Class in software.amazon.smithy.utils
Immutable Map utilities to polyfill Java 9+ features.
MediaType - Class in software.amazon.smithy.utils
Implements a simple media type parser based on the Content-Type grammar defined in RFC 7231.

N

nestingLevel() - Method in class software.amazon.smithy.utils.SimpleParser
Gets the current 0-based nesting level of the parser.
not(Predicate<T>) - Static method in class software.amazon.smithy.utils.FunctionalUtils
Negates a Predicate.

O

of() - Static method in class software.amazon.smithy.utils.ListUtils
Returns an unmodifiable list containing zero entries.
of() - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing zero mappings.
of() - Static method in class software.amazon.smithy.utils.SetUtils
Returns an unmodifiable set containing zero entries.
of(K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing a single mapping.
of(K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing two mappings.
of(K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing three mappings.
of(K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing four mappings.
of(K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing five mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing six mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing seven mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing eight mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing nine mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class software.amazon.smithy.utils.MapUtils
Returns an unmodifiable map containing ten mappings.
of(L, R) - Static method in class software.amazon.smithy.utils.Pair
Creates a Pair from the given values.
of(T) - Static method in class software.amazon.smithy.utils.ListUtils
Returns an unmodifiable list containing a single entry.
of(T) - Static method in class software.amazon.smithy.utils.SetUtils
Returns an unmodifiable set containing a single entry.
of(T...) - Static method in class software.amazon.smithy.utils.ListUtils
Returns an unmodifiable list containing any number of entries.
of(T...) - Static method in class software.amazon.smithy.utils.SetUtils
Returns an unmodifiable set containing any number of entries.
ofEntries(Map.Entry<? extends K, ? extends V>...) - Static method in class software.amazon.smithy.utils.MapUtils
Creates an unmodifiable Map from an array of Map.Entry values.
onSection(String, Consumer<Object>) - Method in class software.amazon.smithy.utils.CodeWriter
Registers a function that intercepts the contents of a section and the current context map and writes to the CodeWriter with the updated contents.
onSectionAppend(String, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Appends to the contents of a named section.
onSectionPrepend(String, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Prepends to the contents of a named section.
openBlock(String, Object...) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing text, a newline, then indenting.
openBlock(String, String, Object[], Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Object, Object, Object, Object, Object, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Object, Object, Object, Object, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Object, Object, Object, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Object, Object, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Object, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
openBlock(String, String, Runnable) - Method in class software.amazon.smithy.utils.CodeWriter
Opens a block of syntax by writing textBeforeNewline, a newline, then indenting, then executes the given Runnable, then closes the block of syntax by writing a newline, dedenting, then writing textAfterNewline.
OptionalUtils - Class in software.amazon.smithy.utils
Functions that make working with optionals easier.
or(Optional<T>, Supplier<Optional<? extends T>>) - Static method in class software.amazon.smithy.utils.OptionalUtils
Retrieves the value of the optional if present or invokes the supplier for a value.
orderedCopyOf(Collection<? extends T>) - Static method in class software.amazon.smithy.utils.SetUtils
Creates an ordered immutable copy of the given set.
orderedCopyOf(Map<? extends K, ? extends V>) - Static method in class software.amazon.smithy.utils.MapUtils
Creates an ordered immutable copy of the given map.

P

Pair<L,​R> - Class in software.amazon.smithy.utils
Generic immutable pair of values.
Pair(L, R) - Constructor for class software.amazon.smithy.utils.Pair
 
peek() - Method in class software.amazon.smithy.utils.SimpleParser
Returns the current character of the expression, but does not consume it.
peek(int) - Method in class software.amazon.smithy.utils.SimpleParser
Returns the current character of the expression + offset characters, but does not consume it.
peekSingleCharForMessage() - Method in class software.amazon.smithy.utils.SimpleParser
Peeks the next character and returns [EOF] if the next character is past the end of the expression.
popState() - Method in class software.amazon.smithy.utils.CodeWriter
Pops the current CodeWriter state from the state stack.
position() - Method in class software.amazon.smithy.utils.SimpleParser
Gets the current 0-based position of the parser.
pushFilteredState(Function<String, String>) - Method in class software.amazon.smithy.utils.CodeWriter
Pushes an anonymous named state that is always passed through the given filter function before being written to the writer.
pushState() - Method in class software.amazon.smithy.utils.CodeWriter
Copies and pushes the current state to the state stack.
pushState(String) - Method in class software.amazon.smithy.utils.CodeWriter
Copies and pushes the current state to the state stack using a named state that can be intercepted by functions registered with CodeWriter.onSection(java.lang.String, java.util.function.Consumer<java.lang.Object>).
putContext(String, Object) - Method in class software.amazon.smithy.utils.CodeWriter
Adds a named key-value pair to the context of the current state.
putContext(Map<String, Object>) - Method in class software.amazon.smithy.utils.CodeWriter
Adds a map of named key-value pair to the context of the current state.
putFormatter(char, BiFunction<Object, String, String>) - Method in class software.amazon.smithy.utils.CodeWriter
Adds a custom formatter expression to the CodeWriter.

R

readUtf8File(String) - Static method in class software.amazon.smithy.utils.IoUtils
Reads a file into a UTF-8 encoded string.
readUtf8File(Path) - Static method in class software.amazon.smithy.utils.IoUtils
Reads a file into a UTF-8 encoded string.
readUtf8Resource(Class<?>, String) - Static method in class software.amazon.smithy.utils.IoUtils
Reads a class resource into a UTF-8 string.
readUtf8Resource(ClassLoader, String) - Static method in class software.amazon.smithy.utils.IoUtils
Reads a class loader resource into a UTF-8 string.
readUtf8Url(URL) - Static method in class software.amazon.smithy.utils.IoUtils
Reads a URL resource into a UTF-8 string.
removeContext(String) - Method in class software.amazon.smithy.utils.CodeWriter
Removes a named key-value pair from the context of the current state.
repeat(char, int) - Static method in class software.amazon.smithy.utils.StringUtils
Returns padding using the specified delimiter repeated to a given length.
repeat(String, int) - Static method in class software.amazon.smithy.utils.StringUtils
Repeat a String repeat times to form a new String.
requiredState(String, T) - Static method in interface software.amazon.smithy.utils.SmithyBuilder
Convenience method for ensuring that a value was set on a builder, and if not, throws an IllegalStateException with a useful message.
right - Variable in class software.amazon.smithy.utils.Pair
 
rightPad(String, int) - Static method in class software.amazon.smithy.utils.StringUtils
Right pad a String with spaces (' ').
rightPad(String, int, char) - Static method in class software.amazon.smithy.utils.StringUtils
Right pad a String with a specified character.
rightPad(String, int, String) - Static method in class software.amazon.smithy.utils.StringUtils
Right pad a String with a specified String.
runCommand(String) - Static method in class software.amazon.smithy.utils.IoUtils
Runs a process using the given command at the current directory specified by System.getProperty("user.dir").
runCommand(String, Path) - Static method in class software.amazon.smithy.utils.IoUtils
Runs a process using the given command relative to the given directory.
runCommand(String, Path, Appendable) - Static method in class software.amazon.smithy.utils.IoUtils
Runs a process using the given command relative to the given directory and writes stdout and stderr to output.

S

setExpressionStart(char) - Method in class software.amazon.smithy.utils.CodeWriter
setIndentText(String) - Method in class software.amazon.smithy.utils.CodeWriter
Sets the text used for indentation (defaults to four spaces).
setNewline(char) - Method in class software.amazon.smithy.utils.CodeWriter
Sets the character used to represent newlines in the current state ("\n" is the default).
setNewline(String) - Method in class software.amazon.smithy.utils.CodeWriter
Sets the character used to represent newlines in the current state ("\n" is the default).
setNewlinePrefix(String) - Method in class software.amazon.smithy.utils.CodeWriter
Sets a prefix to prepend to every line after a new line is added (except for an inserted trailing newline).
SetUtils - Class in software.amazon.smithy.utils
Immutable Set utilities to polyfill Java 9+ features.
setValue(R) - Method in class software.amazon.smithy.utils.Pair
 
SimpleParser - Class in software.amazon.smithy.utils
A simple expression parser that can be extended to implement parsers for small domain specific languages.
SimpleParser(String) - Constructor for class software.amazon.smithy.utils.SimpleParser
Creates a new SimpleParser and sets the expression to parse.
SimpleParser(String, int) - Constructor for class software.amazon.smithy.utils.SimpleParser
Creates a new SimpleParser and sets the expression to parse.
skip() - Method in class software.amazon.smithy.utils.SimpleParser
Skips a single character while tracking lines and columns.
sliceFrom(int) - Method in class software.amazon.smithy.utils.SimpleParser
Gets a slice of the expression starting from the given 0-based character position, read all the way through to the current position of the parser.
SmithyBuilder<T> - Interface in software.amazon.smithy.utils
A mutable object that can be used to create an immutable object of type T.
SmithyGenerated - Annotation Type in software.amazon.smithy.utils
Annotation used to indicate that a package or class was generated and should not be edited directly.
SmithyInternalApi - Annotation Type in software.amazon.smithy.utils
Annotation used to indicate that an API is considered internal to Smithy and subject to change.
SmithyUnstableApi - Annotation Type in software.amazon.smithy.utils
Annotation used to indicate that an API is considered unstable and subject to change.
snakeToCamelCase(String) - Static method in class software.amazon.smithy.utils.CaseUtils
Converts all the delimiter separated words in a String into camelCase, that is each word is made up of a titlecase character and then a series of lowercase characters.
snakeToPascalCase(String) - Static method in class software.amazon.smithy.utils.CaseUtils
Converts all words separated by "_" into PascalCase, that is each word is made up of a titlecase character and then a series of lowercase characters.
software.amazon.smithy.utils - package software.amazon.smithy.utils
 
sp() - Method in class software.amazon.smithy.utils.SimpleParser
Skip 0 or more spaces (that is, ' ' and '\t').
startsWithIgnoreCase(String, String) - Static method in class software.amazon.smithy.utils.StringUtils
Tests if this string starts with the specified prefix ignoring case considerations.
stream(Optional<T>) - Static method in class software.amazon.smithy.utils.OptionalUtils
Converts an Optional into a Stream that can be used in a flatmap.
StringUtils - Class in software.amazon.smithy.utils
Operations on String that are null safe.
strip(String, String) - Static method in class software.amazon.smithy.utils.StringUtils
Strips any of a set of characters from the start and end of a String.
stripEnd(String, String) - Static method in class software.amazon.smithy.utils.StringUtils
Strips any of a set of characters from the end of a String.
stripStart(String, String) - Static method in class software.amazon.smithy.utils.StringUtils
Strips any of a set of characters from the start of a String.
stripToEmpty(String) - Static method in class software.amazon.smithy.utils.StringUtils
Strips whitespace from the start and end of a String returning an empty String if null input.
substring(String, int) - Static method in class software.amazon.smithy.utils.StringUtils
Gets a substring from the specified String avoiding exceptions.
substring(String, int, int) - Static method in class software.amazon.smithy.utils.StringUtils
Gets a substring from the specified String avoiding exceptions.
syntax(String) - Method in class software.amazon.smithy.utils.SimpleParser
Creates a syntax error that adds some context to the given message.

T

Tagged - Interface in software.amazon.smithy.utils
A type that contains tags.
toBuilder() - Method in interface software.amazon.smithy.utils.ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.
toByteArray(InputStream) - Static method in class software.amazon.smithy.utils.IoUtils
Reads and returns the rest of the given input stream as a byte array.
toCamelCase(String) - Static method in class software.amazon.smithy.utils.CaseUtils
Converts all words separated by " ", "-", and "_" to CamelCase.
toCamelCase(String, boolean, char...) - Static method in class software.amazon.smithy.utils.CaseUtils
Converts all the delimiter separated words in a String into camelCase, that is each word is made up of a titlecase character and then a series of lowercase characters.
toPascalCase(String) - Static method in class software.amazon.smithy.utils.CaseUtils
Converts all words separated by " ", "-", and "_" to CamelCase.
ToSmithyBuilder<T> - Interface in software.amazon.smithy.utils
Provides a way to get from an instance of T to a SmithyBuilder.
toSnakeCase(String) - Static method in class software.amazon.smithy.utils.CaseUtils
Convert a given word to snake_case with all lowercase letters.
toString() - Method in class software.amazon.smithy.utils.CodeWriter
Gets the contents of the generated code.
toString() - Method in class software.amazon.smithy.utils.MediaType
 
toString() - Method in class software.amazon.smithy.utils.Pair
 
toUnmodifiableList() - Static method in class software.amazon.smithy.utils.ListUtils
Creates a collector that collects into an unmodifiable list.
toUnmodifiableMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>) - Static method in class software.amazon.smithy.utils.MapUtils
Creates a collector that collects into an unmodifiable Map.
toUnmodifiableSet() - Static method in class software.amazon.smithy.utils.SetUtils
Creates a collector that collects into an unmodifiable set.
toUtf8String(InputStream) - Static method in class software.amazon.smithy.utils.IoUtils
Reads and returns the rest of the given input stream as a string.
TriConsumer<T,​U,​V> - Interface in software.amazon.smithy.utils
Similar to BiConsumer, but accepts three arguments.
trim(String) - Static method in class software.amazon.smithy.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String, handling null by returning null.
trimBlankLines() - Method in class software.amazon.smithy.utils.CodeWriter
Ensures that no more than one blank line occurs in succession.
trimBlankLines(int) - Method in class software.amazon.smithy.utils.CodeWriter
Ensures that no more than the given number of newlines can occur in succession, removing consecutive newlines that exceed the given threshold.
trimToEmpty(String) - Static method in class software.amazon.smithy.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String returning an empty String ("") if the String is empty ("") after the trim or if it is null.
trimToNull(String) - Static method in class software.amazon.smithy.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String returning null if the String is empty ("") after the trim or if it is null.
trimTrailingSpaces() - Method in class software.amazon.smithy.utils.CodeWriter
Enables the trimming of trailing spaces on a line.
trimTrailingSpaces(boolean) - Method in class software.amazon.smithy.utils.CodeWriter
Configures if trailing spaces on a line are removed.

U

uncapitalize(String) - Static method in class software.amazon.smithy.utils.StringUtils
Uncapitalizes a String, changing the first character to lower case as per Character.toLowerCase(int).
upperCase(String) - Static method in class software.amazon.smithy.utils.StringUtils
Converts a String to upper case as per String.toUpperCase().

W

wrap(String, int) - Static method in class software.amazon.smithy.utils.StringUtils
Wraps a single line of text, identifying words by ' '.
wrap(String, int, String, boolean) - Static method in class software.amazon.smithy.utils.StringUtils
Wraps a single line of text, identifying words by ' '.
wrap(String, int, String, boolean, String) - Static method in class software.amazon.smithy.utils.StringUtils
Wraps a single line of text, identifying words by wrapOn.
write(Object, Object...) - Method in class software.amazon.smithy.utils.CodeWriter
Writes text to the CodeWriter and appends a newline.
writeInline(Object, Object...) - Method in class software.amazon.smithy.utils.CodeWriter
Writes text to the CodeWriter without appending a newline.
writeOptional(Object) - Method in class software.amazon.smithy.utils.CodeWriter
Optionally writes text to the CodeWriter and appends a newline if a value is present.
writeWithNoFormatting(Object) - Method in class software.amazon.smithy.utils.CodeWriter
Writes text to the CodeWriter and appends a newline.
ws() - Method in class software.amazon.smithy.utils.SimpleParser
Skip 0 or more whitespace characters (that is, ' ', '\t', '\r', and '\n').
A B C D E F G H I L M N O P R S T U W 
All Classes All Packages