Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class ConstNode  view ConstNode download ConstNode.java

java.lang.Object
  extended bycom.tripi.asp.DefaultNode
      extended bycom.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?
 
Constructor Summary
ConstNode(IdentNode ident, Node expr, boolean priv)
          Constructor.
 
Method Summary
 void dump()
          Dumps the string representation of this node.
 java.lang.Object execute(AspContext context)
          Executes this node.
 
Methods inherited from class com.tripi.asp.DefaultNode
prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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?

Constructor Detail

ConstNode

public ConstNode(IdentNode ident,
                 Node expr,
                 boolean priv)
Constructor.

Method Detail

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