com.voytechs.jnetstream.npl
Class ArrayReferenceNode

java.lang.Object
  extended by com.voytechs.jnetstream.npl.Node
      extended by com.voytechs.jnetstream.npl.ArrayReferenceNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
MutableArrayReferenceNode

public abstract class ArrayReferenceNode
extends Node
implements Visitable


Field Summary
protected  ArrayDimensionNode dimensions
           
protected  java.lang.String name
           
 
Fields inherited from class com.voytechs.jnetstream.npl.Node
parent, token
 
Constructor Summary
ArrayReferenceNode(java.lang.String name, ArrayDimensionNode dimensions)
           
 
Method Summary
 boolean canOptimize()
           
protected abstract  Context getContext()
           
 java.lang.String getName()
          Get the name of the variable.
 Primitive getPrimitive(ArrayDimensionNode dim)
           
static void main(java.lang.String[] args)
          Test function for ArrayReferenceNode
 Node optimize()
           
 java.lang.String toString()
           
 
Methods inherited from class com.voytechs.jnetstream.npl.Node
getParent, getToken, setParent, setToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.voytechs.jnetstream.npl.Visitable
visit
 

Field Detail

dimensions

protected ArrayDimensionNode dimensions

name

protected java.lang.String name
Constructor Detail

ArrayReferenceNode

public ArrayReferenceNode(java.lang.String name,
                          ArrayDimensionNode dimensions)
Parameters:
-
Throws:
Method Detail

getContext

protected abstract Context getContext()

getPrimitive

public Primitive getPrimitive(ArrayDimensionNode dim)
                       throws NodeException
Throws:
NodeException

getName

public java.lang.String getName()
Get the name of the variable.


optimize

public Node optimize()
Specified by:
optimize in class Node

canOptimize

public boolean canOptimize()
Specified by:
canOptimize in class Node

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
Test function for ArrayReferenceNode

Parameters:
args - command line arguments