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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.tripi.asp.DefaultNode
      extended bycom.tripi.asp.IdentNode
All Implemented Interfaces:
Node

public class IdentNode
extends DefaultNode

IdentNode contains an identifier

Version:
0.9

Field Summary
(package private)  java.lang.String ident
          The string identifier of this node
 
Constructor Summary
IdentNode(java.lang.String ident)
          Constructor.
 
Method Summary
 void dump()
          Dumps the code representation of this node.
 boolean equals(java.lang.Object obj)
          Tests equality of this identifier to another identifier.
 java.lang.Object execute(AspContext context)
          Executes this node.
 int hashCode()
          Calculates the hashtable code for this IdentNode.
 java.lang.String toString()
          Outputs the string representation of this identifier, which is simple the text name of the identifier this IdentNode points to.
 
Methods inherited from class com.tripi.asp.DefaultNode
prepare
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ident

java.lang.String ident
The string identifier of this node

Constructor Detail

IdentNode

public IdentNode(java.lang.String ident)
Constructor.

Method Detail

dump

public void dump()
Dumps the code 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. For an Ident node, if this ident contains a function the function is called with no arguments. Otherwise, the value of the identifier is returned.

Specified by:
execute in interface Node
Overrides:
execute in class DefaultNode

equals

public boolean equals(java.lang.Object obj)
Tests equality of this identifier to another identifier.


hashCode

public int hashCode()
Calculates the hashtable code for this IdentNode. Every IdentNode which contains the same identifier name should return the same hash code.


toString

public java.lang.String toString()
Outputs the string representation of this identifier, which is simple the text name of the identifier this IdentNode points to.