public abstract class VarDef
extends java.lang.Object
Defines an implicit variable
| Modifier | Constructor and Description |
|---|---|
protected |
VarDef(java.lang.String name,
org.osgl.inject.BeanSpec type)
Construct an implicit variable by name and
bean spec |
protected |
VarDef(java.lang.String name,
java.lang.Class<?> type)
Construct an implicit variable by name and type
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract java.lang.Object |
evaluate(ActContext context)
A specific variable implementation shall override this method to evaluate the variable value at runtime
|
int |
hashCode() |
java.lang.String |
name() |
java.lang.String |
toString() |
java.lang.String |
type() |
protected VarDef(java.lang.String name,
java.lang.Class<?> type)
Construct an implicit variable by name and type
name - the name of the variable. Could be referenced in view template to get the variabletype - the type of the variable. Some view solution e.g. Rythm needs to explicitly declare the template arguments. And type information is used by those static template enginesprotected VarDef(java.lang.String name,
org.osgl.inject.BeanSpec type)
Construct an implicit variable by name and bean spec
name - the name of the variable. Could be referenced in view template to get the variabletype - the BeanSpec of the variable. Some view solution e.g. Rythm needs to explicitly declare the template arguments. And type information is used by those static template enginespublic java.lang.String name()
public java.lang.String type()
public abstract java.lang.Object evaluate(ActContext context)
A specific variable implementation shall override this method to evaluate the variable value at runtime
context - The application contextpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2014–2017 ActFramework. All rights reserved.