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)
| Fields inherited from class com.svincent.smalljava.SmallType |
Boolean,
Byte,
Char,
debug,
Double,
EmptyArray,
Float,
Int,
Long,
Short,
Void |
| 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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SmallType.ArrayType
protected SmallType.ArrayType(SmallType _subType)
- Make a new ArrayType.
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.