本文整理汇总了Java中com.mitchellbosecke.pebble.operator.UnaryOperator类的典型用法代码示例。如果您正苦于以下问题:Java UnaryOperator类的具体用法?Java UnaryOperator怎么用?Java UnaryOperator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UnaryOperator类属于com.mitchellbosecke.pebble.operator包,在下文中一共展示了UnaryOperator类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUnaryOperators
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
public Map<String, UnaryOperator> getUnaryOperators() {
return this.unaryOperators;
}
示例2: getUnaryOperators
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
@Override
public List<UnaryOperator> getUnaryOperators() {
return null;
}
示例3: getUnaryOperators
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
@Override
public List<UnaryOperator> getUnaryOperators() {
return Collections.EMPTY_LIST;
}
示例4: ExpressionParser
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
/**
* Constructor
*
* @param parser
* A reference to the main parser
* @param binaryOperators
* All the binary operators
* @param unaryOperators
* All the unary operators
*/
public ExpressionParser(Parser parser, Map<String, BinaryOperator> binaryOperators,
Map<String, UnaryOperator> unaryOperators) {
this.parser = parser;
this.binaryOperators = binaryOperators;
this.unaryOperators = unaryOperators;
}
示例5: ParserImpl
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
/**
* Constructor
*
* @param binaryOperators A map of binary operators
* @param unaryOperators A map of unary operators
* @param tokenParsers A map of token parsers
*/
public ParserImpl(Map<String, UnaryOperator> unaryOperators, Map<String, BinaryOperator> binaryOperators,
Map<String, TokenParser> tokenParsers) {
this.binaryOperators = binaryOperators;
this.unaryOperators = unaryOperators;
this.tokenParsers = tokenParsers;
}
示例6: LexerImpl
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
/**
* Constructor
*
* @param syntax
* The primary syntax
* @param unaryOperators
* The available unary operators
* @param binaryOperators
* The available binary operators
*/
public LexerImpl(Syntax syntax, Collection<UnaryOperator> unaryOperators,
Collection<BinaryOperator> binaryOperators) {
this.syntax = syntax;
this.unaryOperators = unaryOperators;
this.binaryOperators = binaryOperators;
}
示例7: getUnaryOperators
import com.mitchellbosecke.pebble.operator.UnaryOperator; //导入依赖的package包/类
/**
* Use this method to provide custom unary operators.
*
* @return A list of Operators. It is okay to return null;
*/
List<UnaryOperator> getUnaryOperators();