public class ReferencesTrait extends Object implements Trait<ReferencesTrait>
Constructor and Description |
---|
ReferencesTrait(AstNode originalAst,
List<ModelSymbol> references)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
AstNode |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
List<ModelSymbol> |
getReferences()
Returns referred models.
|
public ReferencesTrait(AstNode originalAst, List<ModelSymbol> references)
originalAst
- the original AST, or null
if this is an ad-hoc elementreferences
- each referred modelIllegalArgumentException
- if some parameters were null
public AstNode getOriginalAst()
Element
getOriginalAst
in interface Element
null
if unknownpublic List<ModelSymbol> getReferences()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.