java.lang.Object
com.tripi.asp.DefaultNode
com.tripi.asp.ConstNode
- All Implemented Interfaces:
- Node
- public class ConstNode
- extends DefaultNode
ConstNode handles the "CONST ident = expr" expression in ASP.
- Version:
- 0.9
|
Field Summary |
(package private) Node |
expr
Expression the constant should be defined as. |
(package private) IdentNode |
ident
Identifier of constant expression |
(package private) boolean |
priv
Is this constant expression private? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ident
IdentNode ident
- Identifier of constant expression
expr
Node expr
- Expression the constant should be defined as.
priv
boolean priv
- Is this constant expression private?
ConstNode
public ConstNode(IdentNode ident,
Node expr,
boolean priv)
- Constructor.
dump
public void dump()
throws AspException
- Dumps the string representation of this node.
- Specified by:
dump in interface Node- Overrides:
dump in class DefaultNode
execute
public java.lang.Object execute(AspContext context)
throws AspException
- Executes this node. Causes the definition of the constant,
wrapped in a ConstValue class to allow read-only access.
- Specified by:
execute in interface Node- Overrides:
execute in class DefaultNode