Constructor and Description |
---|
MappingFactor(AstNode originalAst,
PropertyMappingKind kind,
PropertySymbol source,
PropertySymbol target)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
PropertyMappingKind |
getKind()
Returns the kind of mapping function.
|
AstNode |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
PropertySymbol |
getSource()
Returns the source property.
|
PropertySymbol |
getTarget()
Returns the target property.
|
public MappingFactor(AstNode originalAst, PropertyMappingKind kind, PropertySymbol source, PropertySymbol target)
originalAst
- the original AST, or null
if this is an ad-hoc elementkind
- the kind of mapping functionsource
- the source propertytarget
- the target propertyIllegalArgumentException
- if some parameters were null
public AstNode getOriginalAst()
Element
getOriginalAst
in interface Element
null
if unknownpublic PropertyMappingKind getKind()
public PropertySymbol getSource()
public PropertySymbol getTarget()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.