org.ogf.graap.wsag.interpreter.expr
Class OneOrMoreExpression
java.lang.Object
org.ogf.graap.wsag.interpreter.expr.AbstractExpression
org.ogf.graap.wsag.interpreter.expr.OneOrMoreExpression
- All Implemented Interfaces:
- IExpression
public class OneOrMoreExpression
- extends AbstractExpression
OneOrMoreExpression
- Author:
- Oliver Waeldrich
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneOrMoreExpression
public OneOrMoreExpression(TermCompositorType expression)
- Parameters:
expression
- a term compositor representing an OneOrMore expression
interpret
protected TermType[] interpret(TermType[] terms,
InterpreterContext context)
throws InterpreterException
- template method that implements a specific interpretation strategy. The strategy interprets a set of
terms and returns a result, i.e. the selected term in an ExactlyOne statement.
- Specified by:
interpret
in class AbstractExpression
- Parameters:
terms
- the terms to interpretcontext
- the interpreter context
- Returns:
- the strategy result, i.e. a filtered term list
- Throws:
InterpreterException
- indicates an error during the term interpretation- See Also:
AbstractExpression.interpret(TermType [], InterpreterContext)
Copyright © 2008-2012. All Rights Reserved.