|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OutboundVariable
A simple data container for 2 strings that comprise information about how a Java object has been converted into Javascript.
There are potentially 3 parts to a variable in Javascript. If the variable is not something that can recurse then only the assignCode will contain data. Otherwise all the parts will be filled out.
var s0 = []; or
var s1 = {};.
| Method Summary | |
|---|---|
java.lang.String |
getAssignCode()
A short script that can be used to refer to this variable |
java.lang.String |
getBuildCode()
A script that completes the definition of this variable, and may contain reference to other declared variables. |
java.lang.String |
getDeclareCode()
A script to declare the variable so it can be referred to. |
OutboundVariable |
getReferenceVariable()
Get a reference to this OutboundVariable. |
void |
prepareAssignCode()
Things work out if they are doubly referenced during the conversion process, and can't be sure how to create output until that phase is done. |
void |
prepareBuildDeclareCodes()
Create build and declare codes. |
| Method Detail |
|---|
java.lang.String getDeclareCode()
java.lang.String getBuildCode()
java.lang.String getAssignCode()
OutboundVariable getReferenceVariable()
this already is a reference then this method returns
this, or if not it creates one that does.
void prepareAssignCode()
void prepareBuildDeclareCodes()
prepareAssignCode()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||