public class Expression extends Object
| Constructor and Description |
|---|
Expression(Expression toCopy)
Copy constructor.
|
Expression(String expression)
Constructor, using the default (i.e.
|
Expression(String expression,
String language)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Expression |
createExpression(String expression,
String language)
Creates an Expression object from the expression and its language.
|
static Expression |
createExpressionFromDescribedExpression(String describedExpression)
Creates an Expression object from a string in the form
LANGUAGE:EXPRESSION. |
boolean |
equals(Object obj) |
String |
getExpression()
Returns the expression string.
|
String |
getLanguage()
Returns the language in which the expression is expressed.
|
int |
hashCode() |
String |
toString() |
public Expression(String expression, String language)
expression - The expression itself.language - The language of the expression.public Expression(String expression)
null) language.expression - The expression itself.public Expression(Expression toCopy)
toCopy - The expression to copy.public static Expression createExpressionFromDescribedExpression(String describedExpression)
LANGUAGE:EXPRESSION.describedExpression - The expression in the form
LANGUAGE:EXPRESSION. The LANGUAGE part should be expressed
only with letters and numbers.null if the expression is null.public static Expression createExpression(String expression, String language)
expression - The expression itself.language - The language of the expression.null if the expression is null.public String getExpression()
public String getLanguage()
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.