APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.javafx.fxml.expression

public abstract Class Expression<T>

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.javafx.fxml.expression.LiteralExpression, com.sun.javafx.fxml.expression.UnaryExpression, com.sun.javafx.fxml.expression.VariableExpression, com.sun.javafx.fxml.expression.BinaryExpression
Imports
java.io.IOException, .PushbackReader, .Reader, .StringReader, java.util.ArrayList, .Iterator, .LinkedList, .List, .Map, com.sun.javafx.fxml.BeanAdapter

Abstract base class for expressions. Also provides static methods for creating arithmetic and logical expressions as well as accessing namespace values by key path.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BinaryExpression<U, T>
add(Expression<T> left, Expression<T> right)

Creates an addition or concatenation expression.

public static BinaryExpression<U, T>
add(Expression<T> left, Object right)

Creates an addition or concatenation expression.

public static BinaryExpression<U, T>
add(Object left, Expression<T> right)

Creates an addition or concatenation expression.

public static BinaryExpression<U, T>
add(Object left, Object right)

Creates an addition or concatenation expression.

public static BinaryExpression<U, T>
and(Expression<T> left, Expression<T> right)

Creates a boolean "and" expression.

public static BinaryExpression<U, T>
and(Expression<T> left, Boolean right)

Creates a boolean "and" expression.

public static BinaryExpression<U, T>
and(Boolean left, Expression<T> right)

Creates a boolean "and" expression.

public static BinaryExpression<U, T>
and(Boolean left, Boolean right)

Creates a boolean "and" expression.

public static BinaryExpression<U, T>
divide(Expression<T> left, Expression<T> right)

Creates a division expression.

public static BinaryExpression<U, T>
divide(Expression<T> left, Number right)

Creates a division expression.

public static BinaryExpression<U, T>
divide(Number left, Expression<Number> right)

Creates a division expression.

public static BinaryExpression<U, T>
divide(Number left, Number right)

Creates a division expression.

public static BinaryExpression<U, T>
equalTo(Expression<T> left, Expression<T> right)

Creates an equality expression.

public static BinaryExpression<U, T>
equalTo(Expression<T> left, Object right)

Creates an equality expression.

public static BinaryExpression<U, T>
equalTo(Object left, Expression<T> right)

Creates an equality expression.

public static BinaryExpression<U, T>
equalTo(Object left, Object right)

Creates an equality expression.

public abstract T

Returns:

The result of evaluating the expression.
evaluate
(Object
The namespace against which the expression will be evaluated.
namespace
)

Evaluates the expression.

public static <T> T

Returns:

The value at the given path, or null if no such value exists.
get
(Object namespace, KeyPath keyPath)

Returns the value at a given path within a namespace.

private static <T> T

Returns:

The value at the given path, or null if no such value exists.
get
(Object namespace, Iterator<String> keyPathIterator)

Returns the value at a given path within a namespace.

public static <T> T

Returns:

The value at the given key, or null if no such value exists.
get
(Object namespace, String key)

Returns the value at a given key within a namespace.

public List<KeyPath>
getArguments()

Returns a list of arguments to this expression.

protected abstract void
getArguments(List<KeyPath> arguments)

Populates a list of arguments to this expression.

public static BinaryExpression<U, T>
greaterThan(Expression<T> left, Expression<T> right)

Creates a "greater-than" comparison expression.

public static BinaryExpression<U, T>
greaterThan(Expression<T> left, Object right)

Creates a "greater-than" comparison expression.

public static BinaryExpression<U, T>
greaterThan(Object left, Expression<T> right)

Creates a "greater-than" comparison expression.

public static BinaryExpression<U, T>
greaterThan(Object left, Object right)

Creates a "greater-than" comparison expression.

public static BinaryExpression<U, T>
greaterThanOrEqualTo(Expression<T> left, Expression<T> right)

Creates a "greater-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
greaterThanOrEqualTo(Expression<T> left, Object right)

Creates a "greater-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
greaterThanOrEqualTo(Object left, Expression<T> right)

Creates a "greater-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
greaterThanOrEqualTo(Object left, Object right)

Creates a "greater-than-or-equal-to" comparison expression.

public abstract boolean

Returns:

true if the expression is defined; false, otherwise.
isDefined
(Object
The namespace against which the expression will be evaluated.
namespace
)

Tests whether the expression is defined.

public static boolean

Returns:

true if the path exists; false, otherwise.
isDefined
(Object namespace, KeyPath keyPath)

Tests the existence of a path within a namespace.

private static boolean

Returns:

true if the path exists; false, otherwise.
isDefined
(Object namespace, Iterator<String> keyPathIterator)

Tests the existence of a path within a namespace.

public static boolean

Returns:

true if the key exists; false, otherwise.
isDefined
(Object namespace, String key)

Tests the existence of a key within a namespace.

public abstract boolean

Returns:

true if the expression is an l-value; false, otherwise.
isLValue
()

Tests whether the expression represents an l-value (i.e. can be assigned to).

public static BinaryExpression<U, T>
lessThan(Expression<T> left, Expression<T> right)

Creates a "less-than" comparison expression.

public static BinaryExpression<U, T>
lessThan(Expression<T> left, Object right)

Creates a "less-than" comparison expression.

public static BinaryExpression<U, T>
lessThan(Object left, Expression<T> right)

Creates a "less-than" comparison expression.

public static BinaryExpression<U, T>
lessThan(Object left, Object right)

Creates a "less-than" comparison expression.

public static BinaryExpression<U, T>
lessThanOrEqualTo(Expression<T> left, Expression<T> right)

Creates a "less-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
lessThanOrEqualTo(Expression<T> left, Object right)

Creates a "less-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
lessThanOrEqualTo(Object left, Expression<T> right)

Creates a "less-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
lessThanOrEqualTo(Object left, Object right)

Creates a "less-than-or-equal-to" comparison expression.

public static BinaryExpression<U, T>
modulo(Expression<T> left, Expression<T> right)

Creates a modulus expression.

public static BinaryExpression<U, T>
modulo(Expression<Number> left, Number right)

Creates a modulus expression.

public static BinaryExpression<U, T>
modulo(Number left, Expression<Number> right)

Creates a modulus expression.

public static BinaryExpression<U, T>
modulo(Number left, Number right)

Creates a modulus expression.

public static BinaryExpression<U, T>
multiply(Expression<T> left, Expression<T> right)

Creates a multiplication expression.

public static BinaryExpression<U, T>
multiply(Expression<T> left, Number right)

Creates a multiplication expression.

public static BinaryExpression<U, T>
multiply(Number left, Expression<T> right)

Creates a multiplication expression.

public static BinaryExpression<U, T>
multiply(Number left, Number right)

Creates a multiplication expression.

public static UnaryExpression<U, T>
negate(Expression<T> operand)

Creates a numeric negation expression.

public static UnaryExpression<U, T>
negate(Number operand)

Creates a numeric negation expression.

public static UnaryExpression<U, T>
not(Expression<T> operand)

Creates a boolean "not" expression.

public static UnaryExpression<U, T>
not(Boolean operand)

Creates a boolean "not" expression.

public static BinaryExpression<U, T>
notEqualTo(Expression<T> left, Expression<T> right)

Creates an inverse equality expression.

public static BinaryExpression<U, T>
notEqualTo(Expression<T> left, Object right)

Creates an inverse equality expression.

public static BinaryExpression<U, T>
notEqualTo(Object left, Expression<T> right)

Creates an inverse equality expression.

public static BinaryExpression<U, T>
notEqualTo(Object left, Object right)

Creates an inverse equality expression.

public static BinaryExpression<U, T>
or(Expression<T> left, Expression<T> right)

Creates a boolean "or" expression.

public static BinaryExpression<U, T>
or(Expression<T> left, Boolean right)

Creates a boolean "or" expression.

public static BinaryExpression<U, T>
or(Boolean left, Expression<T> right)

Creates a boolean "or" expression.

public static BinaryExpression<U, T>
or(Boolean left, Boolean right)

Creates a boolean "or" expression.

public static void
set(Object namespace, KeyPath keyPath, Object value)

Sets the value at a given path within a namespace.

private static void
set(Object namespace, Iterator<String> keyPathIterator, Object value)

Sets the value at a given path within a namespace.

public static void
set(Object namespace, String key, Object value)

Sets the value at a given path within a namespace.

public static BinaryExpression<U, T>
subtract(Expression<T> left, Expression<T> right)

Creates a subtraction expression.

public static BinaryExpression<U, T>
subtract(Expression<T> left, Number right)

Creates a subtraction expression.

public static BinaryExpression<U, T>
subtract(Number left, Expression<T> right)

Creates a subtraction expression.

public static BinaryExpression<U, T>
subtract(Number left, Number right)

Creates a subtraction expression.

public abstract void
update(Object
The namespace against which the expression will be evaluated.
namespace
,
T
The value to assign to the expression.
value
)

Updates the expression value.

public static Expression<T>
valueOf(String
The string representation of the expression.
value
)

Parses a string representation of an expression into an expression tree.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait