public class UnionResolvedType extends BaseType
customFacets| Constructor and Description |
|---|
UnionResolvedType(String name,
TypeExpressionNode typeNode,
List<ResolvedType> of,
ResolvedCustomFacets customFacets) |
UnionResolvedType(TypeExpressionNode typeNode,
List<ResolvedType> of,
ResolvedCustomFacets customFacets) |
| Modifier and Type | Method and Description |
|---|---|
protected UnionResolvedType |
copy() |
boolean |
doAccept(ResolvedType valueType) |
ResolvedType |
mergeFacets(ResolvedType with)
Returns a new type definition after merging the facets of both Types
|
protected ResolvedType |
mergeWith(List<ResolvedType> of) |
List<ResolvedType> |
of() |
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
|
accepts, customFacets, getBuiltinTypeName, getTypeExpressionNode, getTypeName, getTypeName, overwriteFacets, setTypeNodepublic UnionResolvedType(TypeExpressionNode typeNode, List<ResolvedType> of, ResolvedCustomFacets customFacets)
public UnionResolvedType(String name, TypeExpressionNode typeNode, List<ResolvedType> of, ResolvedCustomFacets customFacets)
public List<ResolvedType> of()
protected UnionResolvedType copy()
public ResolvedType overwriteFacets(TypeDeclarationNode from)
ResolvedTypefrom - The node from where to load the facetspublic ResolvedType mergeFacets(ResolvedType with)
ResolvedTypewith - The type definition to merge withpublic boolean doAccept(ResolvedType valueType)
public <T> T visit(TypeVisitor<T> visitor)
ResolvedTypeT - The result typevisitor - The visitorpublic void validateCanOverwriteWith(TypeDeclarationNode from)
ResolvedTypefrom - The node to check withpublic void validateState()
ResolvedTypevalidateState in interface ResolvedTypevalidateState in class BaseTypeprotected ResolvedType mergeWith(List<ResolvedType> of)
Copyright © 2017. All rights reserved.