public class SummarizeTrait extends Object implements Trait<SummarizeTrait>
Constructor and Description |
---|
SummarizeTrait(AstExpression<AstSummarize> expression,
List<ReduceTerm<AstSummarize>> terms)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
AstExpression<AstSummarize> |
getOriginalAst()
Returns the corresponded syntactic element of this.
|
List<ReduceTerm<AstSummarize>> |
getTerms()
Returns each summarize term.
|
public SummarizeTrait(AstExpression<AstSummarize> expression, List<ReduceTerm<AstSummarize>> terms)
expression
- the original ASTterms
- the summarize termsIllegalArgumentException
- if some parameters were null
public AstExpression<AstSummarize> getOriginalAst()
Element
getOriginalAst
in interface Element
null
if unknownpublic List<ReduceTerm<AstSummarize>> getTerms()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.