Index

A B C E F G H I L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages

A

ABSOLUTE_ROOT_SHAPE_ID - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
AGGREGATE_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
AGGREGATE_TYPE_NAME - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
appendChild(TokenTree) - Method in interface software.amazon.smithy.syntax.TokenTree
Append a child to the tree.
APPLY_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
APPLY_STATEMENT_BLOCK - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
APPLY_STATEMENT_SINGULAR - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

B

BR - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
build() - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
builder() - Static method in class software.amazon.smithy.syntax.CapturedToken
 

C

CapturedToken - Class in software.amazon.smithy.syntax
A persisted token captured from an IdlTokenizer.
CapturedToken.Builder - Class in software.amazon.smithy.syntax
 
COMMA - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
COMMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
concatTokens() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the tokens contained in the tree as a single concatenated string.
CONTROL_SECTION - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
CONTROL_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

E

ELIDED_SHAPE_MEMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
endColumn(int) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
endLine(int) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
ENTITY_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
ENTITY_TYPE_NAME - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
ENUM_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
ENUM_SHAPE_MEMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
ENUM_SHAPE_MEMBERS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
ENUM_TYPE_NAME - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
equals(Object) - Method in class software.amazon.smithy.syntax.TreeCursor
 
ERROR - Enum constant in enum class software.amazon.smithy.syntax.TreeType
An ERROR tree is created when a parser error is encountered; that is, any parse tree that contains this node is an invalid model.
errorMessage(String) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
EXPLICIT_SHAPE_MEMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

F

filename(String) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
findAt(int, int) - Method in class software.amazon.smithy.syntax.TreeCursor
Find the innermost tree that contains the given coordinates.
findChildrenByType(TreeType...) - Method in class software.amazon.smithy.syntax.TreeCursor
Recursively find every node in the tree that has the given TreeType.
FOR_RESOURCE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
format(TokenTree) - Static method in class software.amazon.smithy.syntax.Formatter
Formats the given token tree, wrapping lines at 120 characters.
format(TokenTree, int) - Static method in class software.amazon.smithy.syntax.Formatter
Formats the given token tree.
Formatter - Class in software.amazon.smithy.syntax
Formats valid Smithy IDL models.
from(IdlTokenizer) - Static method in class software.amazon.smithy.syntax.CapturedToken
Persist the current token of an IdlTokenizer.
from(IdlTokenizer, Function<CharSequence, String>) - Static method in class software.amazon.smithy.syntax.CapturedToken
Persist the current token of an IdlTokenizer.
fromError(String) - Static method in interface software.amazon.smithy.syntax.TokenTree
Create an error tree with the given error message.

G

getChildren() - Method in interface software.amazon.smithy.syntax.TokenTree
Get direct children of the tree.
getChildren() - Method in class software.amazon.smithy.syntax.TreeCursor
Get all children of the tree as a list of cursors.
getChildrenByType(TreeType...) - Method in class software.amazon.smithy.syntax.TreeCursor
Get direct children from the current tree of a specific type.
getEndColumn() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getEndColumn() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the column the tree ends, starting at 1.
getEndLine() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getEndLine() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the line the tree ends, starting at 1.
getError() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the error associated with the tree, or null if not present.
getErrorMessage() - Method in class software.amazon.smithy.syntax.CapturedToken
Gets the associated error message with the token if it's an error.
getFilename() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getFirstChild() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the first child of the wrapped tree.
getFirstChild(TreeType) - Method in class software.amazon.smithy.syntax.TreeCursor
Get the first child of the wrapped tree with the given type.
getIdlToken() - Method in class software.amazon.smithy.syntax.CapturedToken
Get the token IDL token of the captured token.
getLastChild() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the last child of the wrapped tree.
getLastChild(TreeType) - Method in class software.amazon.smithy.syntax.TreeCursor
Get the last child of the wrapped tree with the given type.
getLexeme() - Method in class software.amazon.smithy.syntax.CapturedToken
Get the raw lexeme of the current token.
getNextSibling() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the next sibling of this tree, if present.
getNumberValue() - Method in class software.amazon.smithy.syntax.CapturedToken
Get the computed Number of the current token if it's a number.
getParent() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the parent cursor, or null if not present.
getPathToCursor() - Method in class software.amazon.smithy.syntax.TreeCursor
Get a list of tree cursors that lead up to the current tree, starting from the root as the first element, and including the current tree as the last element.
getPosition() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getPreviousSibling() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the previous sibling of this tree, if present.
getRoot() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the root of the tree, returning itself if the tree has no parent.
getSourceLocation() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getSourceLocation() - Method in class software.amazon.smithy.syntax.TreeCursor
 
getSpan() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getStartColumn() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getStartColumn() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the column the tree starts, starting at 1.
getStartLine() - Method in class software.amazon.smithy.syntax.CapturedToken
 
getStartLine() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the line the tree starts, starting at 1.
getStartPosition() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the absolute start position of the tree, starting at 0.
getStringContents() - Method in class software.amazon.smithy.syntax.CapturedToken
Get the associated String contents of the token if it's a string, text block, or identifier.
getTree() - Method in class software.amazon.smithy.syntax.TreeCursor
Get the wrapped TokenTree.
getType() - Method in interface software.amazon.smithy.syntax.TokenTree
Get the token tree type.

H

hashCode() - Method in class software.amazon.smithy.syntax.TreeCursor
 

I

IDENTIFIER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
IDL - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
INLINE_AGGREGATE_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
isEmpty() - Method in interface software.amazon.smithy.syntax.TokenTree
Detect if the tree is empty (that is, a non-leaf that has no children or tokens).

L

lexeme(CharSequence) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 

M

METADATA_SECTION - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
METADATA_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
MIXINS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

N

NAMESPACE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NAMESPACE_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_ARRAY - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_KEYWORD - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_OBJECT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_OBJECT_KEY - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_OBJECT_KVP - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_STRING_VALUE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NODE_VALUE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
NUMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
numberValue(Number) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 

O

of(IdlTokenizer) - Static method in interface software.amazon.smithy.syntax.TokenTree
Create the root of a TokenTree from an IdlTokenizer.
of(CapturedToken) - Static method in interface software.amazon.smithy.syntax.TokenTree
Create a leaf tree from a single token.
of(TokenTree) - Static method in class software.amazon.smithy.syntax.TreeCursor
Create a TreeCursor from the given TokenTree, treating it as the root of the tree.
of(TreeType) - Static method in interface software.amazon.smithy.syntax.TokenTree
Create an empty tree of a specific type.
OPERATION_BODY - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
OPERATION_ERRORS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
OPERATION_INPUT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
OPERATION_OUTPUT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
OPERATION_PROPERTY - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
OPERATION_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
operationInputOutputDefinition(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
optionalSpaces(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
optionalWs(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 

P

parseOptionalForResource(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
parseOptionalMixins(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
parseOptionalValueAssignment(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
parseShapeTypeAndName(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
parseShapeTypeAndName(CapturingTokenizer, TreeType) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
parseSharedStructureBodyWithinInline(CapturingTokenizer) - Static method in enum class software.amazon.smithy.syntax.TreeType
 
position(int) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 

Q

QUOTED_TEXT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

R

removeChild(TokenTree) - Method in interface software.amazon.smithy.syntax.TokenTree
Remove a child tree by referential equality.
replaceChild(TokenTree, TokenTree) - Method in interface software.amazon.smithy.syntax.TokenTree
Replace a matching child with the given replacement using referential equality.
ROOT_SHAPE_ID - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

S

SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_ID - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_ID_MEMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_MEMBER - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_MEMBERS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_OR_APPLY_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_SECTION - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SHAPE_STATEMENTS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SIMPLE_SHAPE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
SIMPLE_TYPE_NAME - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
software.amazon.smithy.syntax - package software.amazon.smithy.syntax
This package is currently marked as unstable.
SP - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
startColumn(int) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
startLine(int) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
stringContents(String) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 

T

TEXT_BLOCK - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
toBuilder() - Method in class software.amazon.smithy.syntax.CapturedToken
 
token(IdlToken) - Method in class software.amazon.smithy.syntax.CapturedToken.Builder
 
TOKEN - Enum constant in enum class software.amazon.smithy.syntax.TreeType
The innermost node of the token tree that contains an actual token returned from IdlTokenizer.
tokens() - Method in interface software.amazon.smithy.syntax.TokenTree
Get a flattened stream of all captured tokens contained within the tree.
TokenTree - Interface in software.amazon.smithy.syntax
Provides a labeled tree of tokens returned from IdlTokenizer.
TRAIT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
TRAIT_BODY - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
TRAIT_NODE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
TRAIT_STATEMENTS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
TRAIT_STRUCTURE - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
TreeCursor - Class in software.amazon.smithy.syntax
Externally traverses a TokenTree to provide access to parents and siblings.
TreeType - Enum Class in software.amazon.smithy.syntax
Defines the tree type.

U

USE_SECTION - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
USE_STATEMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

V

VALUE_ASSIGNMENT - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 
valueOf(String) - Static method in enum class software.amazon.smithy.syntax.TreeType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class software.amazon.smithy.syntax.TreeType
Returns an array containing the constants of this enum class, in the order they are declared.

W

WS - Enum constant in enum class software.amazon.smithy.syntax.TreeType
 

Z

zipper() - Method in interface software.amazon.smithy.syntax.TokenTree
Create a zipper for the current tree node, treating it as the root of the tree.
A B C E F G H I L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages