public interface ResolvedType
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResolvedType valueType) |
ResolvedCustomFacets |
customFacets()
Returns the custom facets definitions of this type
|
TypeDeclarationNode |
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
|
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 with<T> T visit(TypeVisitor<T> visitor)
T - The result typevisitor - The visitorTypeDeclarationNode getTypeDeclarationNode()
void validateState()
void validateCanOverwriteWith(TypeDeclarationNode from)
from - The node to check with@Nonnull ResolvedCustomFacets customFacets()
boolean accepts(ResolvedType valueType)
Copyright © 2016. All rights reserved.