codesimian
Class DefaultJavaCodeWritingState

java.lang.Object
  extended by codesimian.DefaultJavaCodeWritingState
All Implemented Interfaces:
JavaCodeWritingState

public class DefaultJavaCodeWritingState
extends java.lang.Object
implements JavaCodeWritingState


Constructor Summary
DefaultJavaCodeWritingState()
           
 
Method Summary
 int countIncompatible()
           
 int findIncompatible(CS possiblyIncompatible)
          returns the index returned by putIncompatible(CS) or -1 if its never been putIncompatible
 java.lang.String javaCodeForIncompatible(int index, CSCallOptions callOptions)
           
 void popNeedsPassword(java.lang.String password)
           
 java.lang.String pushAndCreatePassword(CS shouldPushItself)
           
 int putIncompatible(CS iCanNotBeConvertedToJavaCode)
          CS.toJavaCode should call this if it can not convert itself to java code.
 CSCallOptions rootCSCallOptions()
           
 int stackSize()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultJavaCodeWritingState

public DefaultJavaCodeWritingState()
Method Detail

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