|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.expression.AbstractExpression
prefuse.data.expression.Literal
prefuse.data.expression.NumericLiteral
public class NumericLiteral
Literal expression of a numeric value.
| Constructor Summary | |
|---|---|
NumericLiteral(double x)
Create a new double NumericLiteral. |
|
NumericLiteral(float x)
Create a new float NumericLiteral. |
|
NumericLiteral(int x)
Create a new integer NumericLiteral. |
|
NumericLiteral(long x)
Create a new long NumericLiteral. |
|
NumericLiteral(java.lang.Object x)
Create a new NumericLiteral. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(Tuple t)
By default, throws an UnsupportedOperationException. |
double |
getDouble(Tuple t)
By default, throws an UnsupportedOperationException. |
float |
getFloat(Tuple t)
By default, throws an UnsupportedOperationException. |
int |
getInt(Tuple t)
By default, throws an UnsupportedOperationException. |
long |
getLong(Tuple t)
By default, throws an UnsupportedOperationException. |
java.lang.Class |
getType(Schema s)
Returns the type that this expression evaluates to when tuples with the given Schema are provided as input. |
java.lang.String |
toString()
|
| Methods inherited from class prefuse.data.expression.Literal |
|---|
getLiteral, getLiteral, getLiteral |
| Methods inherited from class prefuse.data.expression.AbstractExpression |
|---|
addChildListeners, addExpressionListener, expressionChanged, fireExpressionChange, getBoolean, hasListeners, removeChildListeners, removeExpressionListener, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumericLiteral(int x)
x - the literal numeric valuepublic NumericLiteral(long x)
x - the literal numeric valuepublic NumericLiteral(float x)
x - the literal numeric valuepublic NumericLiteral(double x)
x - the literal numeric valuepublic NumericLiteral(java.lang.Object x)
x - the literal numeric value, must be an instance of
Number, otherwise an exception will be thrown.| Method Detail |
|---|
public java.lang.Class getType(Schema s)
Expression
Expression.getType(prefuse.data.Schema)public java.lang.Object get(Tuple t)
AbstractExpression
get in interface Expressionget in class AbstractExpressiont - the input Tuple
Expression.get(prefuse.data.Tuple)public int getInt(Tuple t)
AbstractExpression
getInt in interface ExpressiongetInt in class AbstractExpressiont - the input Tuple
Expression.getInt(prefuse.data.Tuple)public long getLong(Tuple t)
AbstractExpression
getLong in interface ExpressiongetLong in class AbstractExpressiont - the input Tuple
Expression.getLong(prefuse.data.Tuple)public float getFloat(Tuple t)
AbstractExpression
getFloat in interface ExpressiongetFloat in class AbstractExpressiont - the input Tuple
Expression.getFloat(prefuse.data.Tuple)public double getDouble(Tuple t)
AbstractExpression
getDouble in interface ExpressiongetDouble in class AbstractExpressiont - the input Tuple
Expression.getDouble(prefuse.data.Tuple)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||