com.eteks.jeks
Class ResourceSyntax
java.lang.Object
|
+--com.eteks.parser.AbstractSyntax
|
+--com.eteks.jeks.ResourceSyntax
- All Implemented Interfaces:
- Syntax
- Direct Known Subclasses:
- JeksFunctionSyntax
- public abstract class ResourceSyntax
- extends AbstractSyntax
Syntax initialized from a ResourceBundle
.
- Since:
- Jeks 1.0
- Version:
- 1.0
- Author:
- Emmanuel Puybaret
Fields inherited from interface com.eteks.parser.Syntax |
CONDITION_ELSE, CONDITION_IF, CONDITION_THEN, CONSTANT_E, CONSTANT_FALSE, CONSTANT_PI, CONSTANT_TRUE, FUNCTION_ABS, FUNCTION_ACOS, FUNCTION_ASIN, FUNCTION_ATAN, FUNCTION_CEIL, FUNCTION_COS, FUNCTION_COSH, FUNCTION_EXP, FUNCTION_FLOOR, FUNCTION_INTEGER, FUNCTION_LN, FUNCTION_LOG, FUNCTION_NOT, FUNCTION_OPPOSITE, FUNCTION_ROUND, FUNCTION_SIN, FUNCTION_SINH, FUNCTION_SQR, FUNCTION_SQRT, FUNCTION_TAN, FUNCTION_TANH, OPERATOR_ADD, OPERATOR_BITWISE_AND, OPERATOR_BITWISE_NOT, OPERATOR_BITWISE_OR, OPERATOR_BITWISE_XOR, OPERATOR_DIFFERENT, OPERATOR_DIVIDE, OPERATOR_EQUAL, OPERATOR_GREATER, OPERATOR_GREATER_OR_EQUAL, OPERATOR_LESS, OPERATOR_LESS_OR_EQUAL, OPERATOR_LOGICAL_AND, OPERATOR_LOGICAL_NOT, OPERATOR_LOGICAL_OR, OPERATOR_LOGICAL_XOR, OPERATOR_MODULO, OPERATOR_MULTIPLY, OPERATOR_OPPOSITE, OPERATOR_POSITIVE, OPERATOR_POWER, OPERATOR_REMAINDER, OPERATOR_SHIFT_LEFT, OPERATOR_SHIFT_RIGHT, OPERATOR_SHIFT_RIGHT_0, OPERATOR_SUBSTRACT, USER_STARTING_KEY |
Constructor Summary |
ResourceSyntax(java.util.ResourceBundle resourceBundle)
Creates an instance of ResourceSyntax initialized with the resourceBundle . |
Methods inherited from class com.eteks.parser.AbstractSyntax |
addFunction, getAssignmentOperator, getBinaryOperatorKey, getBinaryOperatorPriority, getClosingBracket, getCommonFunctionKey, getConditionPartCount, getConditionPartKey, getConstantKey, getDelimiters, getFunction, getOpeningBracket, getParameterSeparator, getUnaryOperatorKey, getWhiteSpaceCharacters, isCaseSensitive, isShortSyntax, removeFunction, setAssignmentOperator, setBinaryOperatorKey, setBinaryOperatorPriority, setClosingBracket, setCommonFunctionKey, setConditionPartKey, setConstantKey, setOpeningBracket, setParameterSeparator, setShortSyntax, setUnaryOperatorKey, setWhiteSpaceCharacters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSyntax
public ResourceSyntax(java.util.ResourceBundle resourceBundle)
- Creates an instance of
ResourceSyntax
initialized with the resourceBundle
.
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
setResourceConstantKey
public void setResourceConstantKey(java.lang.String resourceName,
java.lang.Object constantKey)
setResourceUnaryOperatorKey
public void setResourceUnaryOperatorKey(java.lang.String resourceName,
java.lang.Object unaryOperatorKey)
setResourceBinaryOperatorKey
public void setResourceBinaryOperatorKey(java.lang.String resourceName,
java.lang.Object binaryOperatorKey)
setResourceBinaryOperatorPriority
public void setResourceBinaryOperatorPriority(java.lang.String resourceName,
java.lang.Object binaryOperatorKey)
setResourceConditionPartKey
public void setResourceConditionPartKey(java.lang.String resourceName,
java.lang.Object conditionPartKey)
setResourceCommonFunctionKey
public void setResourceCommonFunctionKey(java.lang.String resourceName,
java.lang.Object commonFunctionKey)
getResourceString
public java.lang.String getResourceString(java.lang.String resourceName)
getResourceString
public static java.lang.String getResourceString(java.util.ResourceBundle resourceBundle,
java.lang.String resourceName)
getResourceChar
public char getResourceChar(java.lang.String resourceName)
getResourceChar
public static char getResourceChar(java.util.ResourceBundle resourceBundle,
java.lang.String resourceName)
getResourceBoolean
public boolean getResourceBoolean(java.lang.String resourceName)
getResourceBoolean
public static boolean getResourceBoolean(java.util.ResourceBundle resourceBundle,
java.lang.String resourceName)
getConstant
public java.lang.String getConstant(java.lang.Object constantKey)
getUnaryOperator
public java.lang.String getUnaryOperator(java.lang.Object unaryOperatorKey)
getBinaryOperator
public java.lang.String getBinaryOperator(java.lang.Object binaryOperatorKey)
getConditionPart
public java.lang.String getConditionPart(java.lang.Object conditionPartKey)
getCommonFunction
public java.lang.String getCommonFunction(java.lang.Object commonFunctionKey)