com.svincent.smalljava
Class SmallType.ArrayType

java.lang.Object
  |
  +--com.svincent.util.BaseObject
        |
        +--com.svincent.smalljava.SmallType
              |
              +--com.svincent.smalljava.SmallType.ArrayType
Enclosing class:
SmallType

public static class SmallType.ArrayType
extends SmallType

A type which represents an array type. ArrayTypes can be nested, which allows multidimensional arrays. To make an ArrayType, use the method SmallType.array

See Also:
SmallType.array(com.svincent.smalljava.SmallType)

Inner classes inherited from class com.svincent.smalljava.SmallType
SmallType.ArrayType, SmallType.MethodType, SmallType.ObjectType, SmallType.PrimitiveType
 
Fields inherited from class com.svincent.smalljava.SmallType
Boolean, Byte, Char, debug, Double, EmptyArray, Float, Int, Long, Short, Void
 
Constructor Summary
protected SmallType.ArrayType(SmallType _subType)
          Make a new ArrayType.
 
Method Summary
 int getDimensionCount()
          Returns the number of dimensions this array has.
 SmallType getElementType()
           
 void writeAsJava(java.io.PrintWriter out)
          Write out this type as Java code, if possible.
 void writeDescriptor(java.io.PrintWriter out)
          Write out this type's type descriptor.
 
Methods inherited from class com.svincent.smalljava.SmallType
addAdd, addArrayNew, addArrayStore, addCmp, addLoad, addReturn, addStore, addSub, array, descriptorToString, isPrimitive, main, parseFieldDescriptor, parseMethodDescriptor, tag, testField, testMethod
 
Methods inherited from class com.svincent.util.BaseObject
dump, dump, dumpToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallType.ArrayType

protected SmallType.ArrayType(SmallType _subType)
Make a new ArrayType.
Method Detail

getElementType

public SmallType getElementType()

getDimensionCount

public int getDimensionCount()
Returns the number of dimensions this array has.

writeAsJava

public void writeAsJava(java.io.PrintWriter out)
Write out this type as Java code, if possible.
Overrides:
writeAsJava in class SmallType

writeDescriptor

public void writeDescriptor(java.io.PrintWriter out)
Write out this type's type descriptor.
Overrides:
writeDescriptor in class SmallType



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.