
com.draagon.util.exp.ExpressionOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utilities Show documentation
Show all versions of utilities Show documentation
Draagon Utilities used by other Draagon projects
The newest version!
/*
* Copyright 2003 Draagon Software LLC. All Rights Reserved.
*
* This software is the proprietary information of Draagon Software LLC.
* Use is subject to license terms.
*/
package com.draagon.util.exp;
public class ExpressionOperator extends Expression
{
public final static int AND = 0;
public final static int OR = 1;
private Expression mExpA = null;
private Expression mExpB = null;
private int mOper = AND;
ExpressionOperator( Expression expA, Expression expB, int oper )
{
mExpA = expA;
mExpB = expB;
mOper = oper;
}
public Expression getExpressionA()
{
return mExpA;
}
public Expression getExpressionB()
{
return mExpB;
}
public int getOperator()
{
return mOper;
}
public String toString()
{
String c = " AND ";
if ( getOperator() == OR ) c = " OR ";
return getExpressionA() + c + getExpressionB();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy