public final class ScalarTypeDeclaration extends TypeDeclaration
INT, NAME, STRING| Constructor and Description |
|---|
ScalarTypeDeclaration(NameIdentifier typeName)
Creates the typedeclaration-by-name
|
ScalarTypeDeclaration(java.lang.String typeName)
Deprecated.
deprecated
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsScalarTypeDeclaration(ScalarTypeDeclaration obj)
Checks whether this ScalarTypeDeclaration equals the one in obj.
|
static TypeDeclaration |
getCommonScalarSubTypeDeclaration(ScalarTypeDeclaration t1,
ScalarTypeDeclaration t2)
Gets a declaration object for the least specific common subtype between t1 and t2
|
static TypeDeclaration |
getCommonScalarSuperTypeDeclaration(ScalarTypeDeclaration typeDeclaration1,
ScalarTypeDeclaration typeDeclaration2)
Gets A TypeDeclaration object for the type that is the most specific common supertype between the two types given
|
ValueBuffer |
getValueBuffer(java.nio.ByteBuffer attributeValueEncoding)
Gets the appropriate (i.e.
|
int |
hashCode() |
boolean |
isIntervalTyped()
Checks whether the declared scalar type is interval-typed.
|
boolean |
isScalar()
Checks whether the declared type is scalar
|
boolean |
matchesExpectedTypeDeclaration(TypeDeclaration expectedTypeDeclaration)
Checks whether this type declaration "matches" the given expected type declaration, i.e.
|
java.lang.String |
toString() |
getCommonSubTypeDeclaration, getCommonSuperTypeDeclaration, getTypeDeclaration, getTypeDeclaration, getTypeName, getTypeNameIdentifier, isNonScalarType, isScalarTypepublic ScalarTypeDeclaration(NameIdentifier typeName)
typeName - The type name@Deprecated public ScalarTypeDeclaration(java.lang.String typeName)
typeName - The type namepublic static TypeDeclaration getCommonScalarSubTypeDeclaration(ScalarTypeDeclaration t1, ScalarTypeDeclaration t2) throws NotFoundException
t1 - type 1t2 - type 2NotFoundException - If no such common subtype existspublic static TypeDeclaration getCommonScalarSuperTypeDeclaration(ScalarTypeDeclaration typeDeclaration1, ScalarTypeDeclaration typeDeclaration2) throws NotFoundException
typeDeclaration1 - type 1typeDeclaration2 - type 2NotFoundException - if nosuch common supertype existspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equalsScalarTypeDeclaration(ScalarTypeDeclaration obj)
obj - A ScalarTypeDeclaration to be compared for equality with this one.public ValueBuffer getValueBuffer(java.nio.ByteBuffer attributeValueEncoding)
TypeDeclarationgetValueBuffer in class TypeDeclarationattributeValueEncoding - an encoding of a value of this typepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isIntervalTyped()
TypeDeclarationisIntervalTyped in class TypeDeclarationpublic boolean isScalar()
TypeDeclarationisScalar in class TypeDeclarationpublic boolean matchesExpectedTypeDeclaration(TypeDeclaration expectedTypeDeclaration)
TypeDeclarationmatchesExpectedTypeDeclaration in class TypeDeclarationexpectedTypeDeclaration - A type declaration that is expected to be a declaration for a supertype of this onepublic java.lang.String toString()
toString in class java.lang.Object