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

Quick Search    Search Deep

com.voytechs.jnetstream.npl
Class ArrayReferenceNode  view ArrayReferenceNode download ArrayReferenceNode.java

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

public abstract class ArrayReferenceNode
extends Node
implements Visitable


Field Summary
private static boolean debug
           
protected  ArrayDimensionNode dimensions
           
protected  java.lang.String name
           
 
Fields inherited from class com.voytechs.jnetstream.npl.Node
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.
 com.voytechs.jnetstream.primitive.Primitive getPrimitive(ArrayDimensionNode dim)
           
static void main(java.lang.String[] args)
          Test function for ArrayReferenceNode
 Node optimize()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class com.voytechs.jnetstream.npl.Node
getToken, 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

debug

private static final boolean debug
See Also:
Constant Field Values

dimensions

protected ArrayDimensionNode dimensions

name

protected java.lang.String name
Constructor Detail

ArrayReferenceNode

public ArrayReferenceNode(java.lang.String name,
                          ArrayDimensionNode dimensions)
Method Detail

getContext

protected abstract Context getContext()

getPrimitive

public com.voytechs.jnetstream.primitive.Primitive getPrimitive(ArrayDimensionNode dim)
                                                         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()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


main

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