Top Description Fields Constructors Methods
com.sun.javafx.fxml.expression

public Class VariableExpression

extends Expression<Object>
Class Inheritance
Imports
java.util.List

Expression representing a variable value.

Field Summary

Modifier and TypeField and Description
private KeyPath

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
evaluate(Object
The namespace against which the expression will be evaluated.
namespace
)

Implements abstract com.sun.javafx.fxml.expression.Expression.evaluate.

Evaluates the expression.

protected void
getArguments(List<KeyPath> arguments)

Implements abstract com.sun.javafx.fxml.expression.Expression.getArguments.

Populates a list of arguments to this expression.

public KeyPath
getKeyPath()

Returns the path to the variable associated with this expression.

public boolean
isDefined(Object
The namespace against which the expression will be evaluated.
namespace
)

Implements abstract com.sun.javafx.fxml.expression.Expression.isDefined.

Tests whether the expression is defined.

public boolean
isLValue()

Implements abstract com.sun.javafx.fxml.expression.Expression.isLValue.

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

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

Implements abstract com.sun.javafx.fxml.expression.Expression.update.

Updates the expression value.

Inherited from com.sun.javafx.fxml.expression.Expression:
addaddaddaddandandandanddividedividedividedivideequalToequalToequalToequalTogetgetgetArgumentsgreaterThangreaterThangreaterThangreaterThangreaterThanOrEqualTogreaterThanOrEqualTogreaterThanOrEqualTogreaterThanOrEqualToisDefinedisDefinedlessThanlessThanlessThanlessThanlessThanOrEqualTolessThanOrEqualTolessThanOrEqualTolessThanOrEqualTomodulomodulomodulomodulomultiplymultiplymultiplymultiplynegatenegatenotnotnotEqualTonotEqualTonotEqualTonotEqualToororororsetsetsubtractsubtractsubtractsubtractvalueOf

Field Detail

keyPathback to summary
private KeyPath keyPath

Constructor Detail

VariableExpressionback to summary
public VariableExpression(KeyPath keyPath)

Method Detail

evaluateback to summary
public Object evaluate(Object namespace)

Implements abstract com.sun.javafx.fxml.expression.Expression.evaluate.

Doc from com.sun.javafx.fxml.expression.Expression.evaluate.

Evaluates the expression.

Parameters
namespace:Object

The namespace against which the expression will be evaluated.

Returns:Object

The result of evaluating the expression.

Annotations
@Override
getArgumentsback to summary
protected void getArguments(List<KeyPath> arguments)

Implements abstract com.sun.javafx.fxml.expression.Expression.getArguments.

Doc from com.sun.javafx.fxml.expression.Expression.getArguments.

Populates a list of arguments to this expression.

Annotations
@Override
getKeyPathback to summary
public KeyPath getKeyPath()

Returns the path to the variable associated with this expression.

isDefinedback to summary
public boolean isDefined(Object namespace)

Implements abstract com.sun.javafx.fxml.expression.Expression.isDefined.

Doc from com.sun.javafx.fxml.expression.Expression.isDefined.

Tests whether the expression is defined.

Parameters
namespace:Object

The namespace against which the expression will be evaluated.

Returns:boolean

true if the expression is defined; false, otherwise.

Annotations
@Override
isLValueback to summary
public boolean isLValue()

Implements abstract com.sun.javafx.fxml.expression.Expression.isLValue.

Doc from com.sun.javafx.fxml.expression.Expression.isLValue.

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

Returns:boolean

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
updateback to summary
public void update(Object namespace, Object value)

Implements abstract com.sun.javafx.fxml.expression.Expression.update.

Doc from com.sun.javafx.fxml.expression.Expression.update.

Updates the expression value.

Parameters
namespace:Object

The namespace against which the expression will be evaluated.

value:Object

The value to assign to the expression.

Annotations
@Override