public interface ResolvedType
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResolvedType valueType) |
ResolvedCustomFacets |
customFacets()
Returns the custom facets definitions of this type
|
String |
getBuiltinTypeName()
Returns the builtin type name.
|
TypeExpressionNode |
getTypeDeclarationNode()
The type declaration node that define this type
|
String |
getTypeName()
Returns the type name if any
|
ResolvedType |
mergeFacets(ResolvedType with)
Returns a new type definition after merging the facets of both Types
|
ResolvedType |
overwriteFacets(TypeDeclarationNode from)
Returns a new type definition with the facets being overwritten from the specified node
|
ResolvedType |
setTypeNode(TypeExpressionNode typeNode) |
void |
validateCanOverwriteWith(TypeDeclarationNode from)
Validate if this type can be overwritten by the specified node
|
void |
validateState()
Validate state consistency
|
<T> T |
visit(TypeVisitor<T> visitor)
Dispatch the implementation to the visitor method
|
ResolvedType overwriteFacets(TypeDeclarationNode from)
from - The node from where to load the facetsResolvedType mergeFacets(ResolvedType with)
with - The type definition to merge withResolvedType setTypeNode(TypeExpressionNode typeNode)
<T> T visit(TypeVisitor<T> visitor)
T - The result typevisitor - The visitor@Nullable String getBuiltinTypeName()
TypeExpressionNode getTypeDeclarationNode()
void validateState()
void validateCanOverwriteWith(TypeDeclarationNode from)
from - The node to check with@Nonnull ResolvedCustomFacets customFacets()
boolean accepts(ResolvedType valueType)
Copyright © 2017. All rights reserved.