com.svincent.smalljava
Class SmallMethod.Local
java.lang.Object
|
+--com.svincent.util.BaseObject
|
+--com.svincent.smalljava.SmallMethod.Local
- Enclosing class:
- SmallMethod
- public abstract static class SmallMethod.Local
- extends BaseObject
Represents a local variable.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SmallMethod.Local
protected SmallMethod.Local(SmallMethod _method,
SmallType _type,
java.lang.String _name)
throws SmallJavaBuildingException
getIndex
public int getIndex()
- Return the index of this local variable. In SmallJava, index 0
is reserved for 'this' in non-static methods, 1 (or 0) to n are
reserved for the method's n parameters, and subsequent indexes are
unused.
getName
public java.lang.String getName()
- Returns the name of this local variable.
getType
public SmallType getType()
- Returns the type of this local variable.
writeVarDeclAsJava
public abstract void writeVarDeclAsJava(IndentPrintWriter out)
- Write this variable declaration as a Java statement, like "int i;".
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.