public final class PrimitiveBindings extends BindingHelper
String
s, Byte
s, etc.
Handles both the object and primitive types.
Constructor and Description |
---|
PrimitiveBindings() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getBoolean(ArgumentStack context)
Gets a type from a
ArgumentStack . |
java.lang.Double |
getDouble(ArgumentStack context,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
java.lang.Float |
getFloat(ArgumentStack context,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
java.lang.Integer |
getInteger(ArgumentStack context,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
java.lang.Short |
getShort(ArgumentStack context,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
java.lang.String |
getString(ArgumentStack context,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
java.lang.String |
getText(ArgumentStack context,
Text text,
java.lang.annotation.Annotation[] modifiers)
Gets a type from a
ArgumentStack . |
bind, getBehavior, getConsumedCount, getSuggestions, getTypes
public java.lang.String getText(ArgumentStack context, Text text, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contexttext
- the text annotationmodifiers
- a list of modifiersParameterException
- on errorpublic java.lang.String getString(ArgumentStack context, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contextmodifiers
- a list of modifiersParameterException
- on errorpublic java.lang.Boolean getBoolean(ArgumentStack context) throws ParameterException
ArgumentStack
.context
- the contextParameterException
- on errorpublic java.lang.Integer getInteger(ArgumentStack context, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contextmodifiers
- a list of modifiersParameterException
- on errorpublic java.lang.Short getShort(ArgumentStack context, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contextmodifiers
- a list of modifiersParameterException
- on errorpublic java.lang.Double getDouble(ArgumentStack context, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contextmodifiers
- a list of modifiersParameterException
- on errorpublic java.lang.Float getFloat(ArgumentStack context, java.lang.annotation.Annotation[] modifiers) throws ParameterException
ArgumentStack
.context
- the contextmodifiers
- a list of modifiersParameterException
- on error