Package software.amazon.smithy.syntax
Class CapturedToken.Builder
- java.lang.Object
-
- software.amazon.smithy.syntax.CapturedToken.Builder
-
- All Implemented Interfaces:
SmithyBuilder<CapturedToken>
- Enclosing class:
- CapturedToken
public static final class CapturedToken.Builder extends java.lang.Object implements SmithyBuilder<CapturedToken>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapturedToken
build()
Creates an immutable object that is created from the properties that have been set on the builder.CapturedToken.Builder
endColumn(int endColumn)
CapturedToken.Builder
endLine(int endLine)
CapturedToken.Builder
errorMessage(java.lang.String errorMessage)
CapturedToken.Builder
filename(java.lang.String filename)
CapturedToken.Builder
lexeme(java.lang.CharSequence lexeme)
CapturedToken.Builder
numberValue(java.lang.Number numberValue)
CapturedToken.Builder
position(int position)
CapturedToken.Builder
startColumn(int startColumn)
CapturedToken.Builder
startLine(int startLine)
CapturedToken.Builder
stringContents(java.lang.String stringContents)
CapturedToken.Builder
token(IdlToken token)
-
-
-
Method Detail
-
build
public CapturedToken build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<CapturedToken>
- Returns:
- an instance of T
-
token
public CapturedToken.Builder token(IdlToken token)
-
filename
public CapturedToken.Builder filename(java.lang.String filename)
-
position
public CapturedToken.Builder position(int position)
-
startLine
public CapturedToken.Builder startLine(int startLine)
-
startColumn
public CapturedToken.Builder startColumn(int startColumn)
-
endLine
public CapturedToken.Builder endLine(int endLine)
-
endColumn
public CapturedToken.Builder endColumn(int endColumn)
-
lexeme
public CapturedToken.Builder lexeme(java.lang.CharSequence lexeme)
-
stringContents
public CapturedToken.Builder stringContents(java.lang.String stringContents)
-
errorMessage
public CapturedToken.Builder errorMessage(java.lang.String errorMessage)
-
numberValue
public CapturedToken.Builder numberValue(java.lang.Number numberValue)
-
-