com.threerings.expr
Class IntegerExpression.Constant

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.expr.IntegerExpression
          extended by com.threerings.expr.IntegerExpression.Constant
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
IntegerExpression

public static class IntegerExpression.Constant
extends IntegerExpression

A constant expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.expr.IntegerExpression
IntegerExpression.Constant, IntegerExpression.Evaluator, IntegerExpression.Reference
 
Field Summary
 int value
          The value of the constant.
 
Constructor Summary
IntegerExpression.Constant()
          Creates a new constant expression with a value of zero.
IntegerExpression.Constant(int value)
          Creates a new constant expression with the specified value.
 
Method Summary
 IntegerExpression.Evaluator createEvaluator(Scope scope)
          Creates an expression evaluator for the supplied context.
 
Methods inherited from class com.threerings.expr.IntegerExpression
invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

@Editable
public int value
The value of the constant.

Constructor Detail

IntegerExpression.Constant

public IntegerExpression.Constant(int value)
Creates a new constant expression with the specified value.


IntegerExpression.Constant

public IntegerExpression.Constant()
Creates a new constant expression with a value of zero.

Method Detail

createEvaluator

public IntegerExpression.Evaluator createEvaluator(Scope scope)
Description copied from class: IntegerExpression
Creates an expression evaluator for the supplied context.

Specified by:
createEvaluator in class IntegerExpression


Copyright © 2011. All Rights Reserved.