📄 unarylogicoperatornode.java
字号:
package org.hibernate.hql.ast.tree;
import org.hibernate.type.Type;
import org.hibernate.Hibernate;
/**
* @author <a href="mailto:steve@hibernate.org">Steve Ebersole </a>
*/
public class UnaryLogicOperatorNode extends SqlNode implements UnaryOperatorNode {
public Node getOperand() {
return ( Node ) getFirstChild();
}
public void initialize() {
// nothing to do; even if the operand is a parameter, no way we could
// infer an appropriate expected type here
}
public Type getDataType() {
// logic operators by definition resolve to booleans
return Hibernate.BOOLEAN;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -