codesimian
Class DefaultJavaCodeWritingState
java.lang.Object
codesimian.DefaultJavaCodeWritingState
- All Implemented Interfaces:
- JavaCodeWritingState
public class DefaultJavaCodeWritingState
- extends java.lang.Object
- implements JavaCodeWritingState
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultJavaCodeWritingState
public DefaultJavaCodeWritingState()
findIncompatible
public int findIncompatible(CS possiblyIncompatible)
- Description copied from interface:
JavaCodeWritingState
- returns the index returned by putIncompatible(CS) or -1 if its never been putIncompatible
- Specified by:
findIncompatible
in interface JavaCodeWritingState
putIncompatible
public int putIncompatible(CS iCanNotBeConvertedToJavaCode)
- Description copied from interface:
JavaCodeWritingState
- CS.toJavaCode should call this if it can not convert itself to java code.
Returns the parameter index that the incompatible CS will become
in the new subclass of CS that the java code creates.
- Specified by:
putIncompatible
in interface JavaCodeWritingState
countIncompatible
public int countIncompatible()
- Specified by:
countIncompatible
in interface JavaCodeWritingState
javaCodeForIncompatible
public java.lang.String javaCodeForIncompatible(int index,
CSCallOptions callOptions)
- Specified by:
javaCodeForIncompatible
in interface JavaCodeWritingState
pushAndCreatePassword
public java.lang.String pushAndCreatePassword(CS shouldPushItself)
popNeedsPassword
public void popNeedsPassword(java.lang.String password)
stackSize
public int stackSize()
rootCSCallOptions
public CSCallOptions rootCSCallOptions()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object