Package com.udojava.evalex
Class ExpressionSettings
- java.lang.Object
-
- com.udojava.evalex.ExpressionSettings
-
public class ExpressionSettings extends java.lang.ObjectExpression settings can be used to set certain defaults, when creating a new expression. Settings are read only and can be created using abuilder().- See Also:
Expression(String, ExpressionSettings)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpressionSettings.BuilderA builder to create a read-onlyExpressionSettingsinstance.
-
Constructor Summary
Constructors Constructor Description ExpressionSettings(java.math.MathContext mathContext, int powerOperatorPrecedence)Create a new settings object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpressionSettings.Builderbuilder()java.math.MathContextgetMathContext()Get the current math context.intgetPowerOperatorPrecedence()Get the current power precedence.
-
-
-
Method Detail
-
getMathContext
public java.math.MathContext getMathContext()
Get the current math context.- Returns:
- The current math context.
-
getPowerOperatorPrecedence
public int getPowerOperatorPrecedence()
Get the current power precedence.- Returns:
- The current power precedence.
-
builder
public static ExpressionSettings.Builder builder()
-
-