Package com.yahoo.schema.parser
Class ParsedType
java.lang.Object
com.yahoo.schema.parser.ParsedType
This class holds the extracted information after parsing a type
declaration (typically for a field). Since types can be complex,
struct names (known or unknown), or even document names, this class
is somewhat complicated.
- Author:
- arnej27959
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedTypeannotationRef(String name) static ParsedTypearrayOf(ParsedType vt) static ParsedTypedocumentRef(ParsedType docType) static ParsedTypedocumentType(String name) static ParsedTypebooleanbooleancom.yahoo.tensor.TensorTypestatic ParsedTypemapType(ParsedType kt, ParsedType vt) name()voidsetCreateIfNonExistent(boolean value) voidsetRemoveIfZero(boolean value) static ParsedTypetensorType(com.yahoo.tensor.TensorType tType) toString()static ParsedTypewsetOf(ParsedType vt)
-
Method Details
-
toString
-
name
-
getVariant
-
mapKeyType
-
mapValueType
-
nestedType
-
getCreateIfNonExistent
public boolean getCreateIfNonExistent() -
getRemoveIfZero
public boolean getRemoveIfZero() -
getReferencedDocumentType
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType() -
getNameOfReferencedAnnotation
-
mapType
-
arrayOf
-
wsetOf
-
documentRef
-
annotationRef
-
tensorType
-
fromName
-
documentType
-
setCreateIfNonExistent
public void setCreateIfNonExistent(boolean value) -
setRemoveIfZero
public void setRemoveIfZero(boolean value)
-