|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.marshal.TypeParser
public class TypeParser
Parse a string containing an Type definition.
Field Summary | |
---|---|
static TypeParser |
EMPTY_PARSER
|
Constructor Summary | |
---|---|
TypeParser(java.lang.String str)
|
Method Summary | |
---|---|
java.util.Map<java.lang.Byte,AbstractType<?>> |
getAliasParameters()
|
java.util.Map<java.nio.ByteBuffer,CollectionType> |
getCollectionsParameters()
|
java.util.Map<java.lang.String,java.lang.String> |
getKeyValueParameters()
|
static java.lang.String |
getShortName(AbstractType<?> type)
|
java.util.List<AbstractType<?>> |
getTypeParameters()
|
AbstractType<?> |
parse()
Parse an AbstractType from current position of this parser. |
static AbstractType<?> |
parse(java.lang.CharSequence compareWith)
|
static AbstractType<?> |
parse(java.lang.String str)
Parse a string containing an type definition. |
char |
readNextChar()
|
java.lang.String |
readNextIdentifier()
|
static java.lang.String |
stringifyAliasesParameters(java.util.Map<java.lang.Byte,AbstractType<?>> aliases)
Helper function to ease the writing of AbstractType.toString() methods. |
static java.lang.String |
stringifyCollectionsParameters(java.util.Map<java.nio.ByteBuffer,CollectionType> collections)
|
static java.lang.String |
stringifyTypeParameters(java.util.List<AbstractType<?>> types)
Helper function to ease the writing of AbstractType.toString() methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TypeParser EMPTY_PARSER
Constructor Detail |
---|
public TypeParser(java.lang.String str)
Method Detail |
---|
public static AbstractType<?> parse(java.lang.String str) throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public static AbstractType<?> parse(java.lang.CharSequence compareWith) throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public static java.lang.String getShortName(AbstractType<?> type)
public AbstractType<?> parse() throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public java.util.Map<java.lang.String,java.lang.String> getKeyValueParameters() throws SyntaxException
SyntaxException
public java.util.List<AbstractType<?>> getTypeParameters() throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public java.util.Map<java.lang.Byte,AbstractType<?>> getAliasParameters() throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public java.util.Map<java.nio.ByteBuffer,CollectionType> getCollectionsParameters() throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public java.lang.String readNextIdentifier()
public char readNextChar()
public static java.lang.String stringifyAliasesParameters(java.util.Map<java.lang.Byte,AbstractType<?>> aliases)
public static java.lang.String stringifyTypeParameters(java.util.List<AbstractType<?>> types)
public static java.lang.String stringifyCollectionsParameters(java.util.Map<java.nio.ByteBuffer,CollectionType> collections)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |