How to use the JSV.export.FormContext function in jsv

To help you get started, we’ve selected a few jsv examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geoffrowland / moodle-filter_jmol / yui / jsmol / j2s / JSV / export / FormContext.js View on Github external
if (a.indexOf ("#") != b) {
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
return;
}this.ptr = this.b$["JSV.export.FormContext"].formTokens.size ();
var c = false;
if (a.indexOf ("#end") == b) {
this.cmdType = 4;
this.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].commandLevel--;
if (this.b$["JSV.export.FormContext"].commandLevel < 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #end";
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
this.data = a.substring (0, d);
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
return;
}} else if (a.indexOf ("#elseif") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
github NPellet / visualizer / src / modules / types / science / chemistry / jsmol / lib / j2s / JSV / export / FormContext.js View on Github external
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #else";
return;
}this.cmdType = 2;
c = true;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else {
JU.Logger.warn ("??? " + a);
}if (c) {
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
if (d.cmdType != 1 && d.cmdType != 3) {
this.b$["JSV.export.FormContext"].strError = "misplaced " + a.trim ();
return;
}}}this.b$["JSV.export.FormContext"].formTokens.addLast (this);
}, "~S,~N");
c$ = Clazz.p0p ();
github geoffrowland / moodle-filter_jmol / yui / jsmol / j2s / JSV / export / FormContext.js View on Github external
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
this.data = a.substring (0, d);
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
return;
}} else if (a.indexOf ("#elseif") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #elseif";
return;
}this.cmdType = 3;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
c = true;
d.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#else") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #else";
github NPellet / visualizer / src / modules / types / science / chemistry / jsmol / lib / j2s / JSV / export / FormContext.js View on Github external
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
return;
}} else if (a.indexOf ("#elseif") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #elseif";
return;
}this.cmdType = 3;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
c = true;
d.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#else") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #else";
return;
}this.cmdType = 2;
c = true;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else {
JU.Logger.warn ("??? " + a);
}if (c) {
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
if (d.cmdType != 1 && d.cmdType != 3) {
this.b$["JSV.export.FormContext"].strError = "misplaced " + a.trim ();
return;
}}}this.b$["JSV.export.FormContext"].formTokens.addLast (this);
}, "~S,~N");
c$ = Clazz.p0p ();
github geoffrowland / moodle-filter_jmol / yui / jsmol / j2s / JSV / export / FormContext.js View on Github external
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #elseif";
return;
}this.cmdType = 3;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
c = true;
d.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#else") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #else";
return;
}this.cmdType = 2;
c = true;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else {
JU.Logger.warn ("??? " + a);
}if (c) {
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
if (d.cmdType != 1 && d.cmdType != 3) {
this.b$["JSV.export.FormContext"].strError = "misplaced " + a.trim ();
return;
}}}this.b$["JSV.export.FormContext"].formTokens.addLast (this);
}, "~S,~N");
c$ = Clazz.p0p ();
github geoffrowland / moodle-filter_jmol / yui / jsmol / j2s / JSV / export / FormContext.js View on Github external
function (a, b) {
this.hasVariable = a.indexOf ("$") >= 0;
this.data = a;
if (a.indexOf ("#") != b) {
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
return;
}this.ptr = this.b$["JSV.export.FormContext"].formTokens.size ();
var c = false;
if (a.indexOf ("#end") == b) {
this.cmdType = 4;
this.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].commandLevel--;
if (this.b$["JSV.export.FormContext"].commandLevel < 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #end";
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
this.data = a.substring (0, d);
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
github NPellet / visualizer / src / lib / jsmol / j2s / JSV / export / FormContext.js View on Github external
this.hasVariable = a.indexOf ("$") >= 0;
this.data = a;
if (a.indexOf ("#") != b) {
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
return;
}this.ptr = this.b$["JSV.export.FormContext"].formTokens.size ();
var c = false;
if (a.indexOf ("#end") == b) {
this.cmdType = 4;
this.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].commandLevel--;
if (this.b$["JSV.export.FormContext"].commandLevel < 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #end";
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
this.data = a.substring (0, d);
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
return;
github NPellet / visualizer / src / modules / types / science / chemistry / jsmol / lib / j2s / JSV / export / FormContext.js View on Github external
function (a, b) {
this.hasVariable = a.indexOf ("$") >= 0;
this.data = a;
if (a.indexOf ("#") != b) {
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
return;
}this.ptr = this.b$["JSV.export.FormContext"].formTokens.size ();
var c = false;
if (a.indexOf ("#end") == b) {
this.cmdType = 4;
this.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].commandLevel--;
if (this.b$["JSV.export.FormContext"].commandLevel < 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #end";
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
github NPellet / visualizer / src / lib / jsmol / j2s / JSV / export / FormContext.js View on Github external
function (a, b) {
this.hasVariable = a.indexOf ("$") >= 0;
this.data = a;
if (a.indexOf ("#") != b) {
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
return;
}this.ptr = this.b$["JSV.export.FormContext"].formTokens.size ();
var c = false;
if (a.indexOf ("#end") == b) {
this.cmdType = 4;
this.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].commandLevel--;
if (this.b$["JSV.export.FormContext"].commandLevel < 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #end";
return;
}this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
} else {
this.b$["JSV.export.FormContext"].commandLevel++;
if (a.indexOf ("#if") == b) {
this.cmdType = 1;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#foreach") == b) {
this.cmdType = 5;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
this.cmdPtr = this.ptr;
if (a.indexOf ("#end") > 0) {
var d = a.indexOf (")") + 1;
this.data = a.substring (0, d);
this.b$["JSV.export.FormContext"].formTokens.addLast (this);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
github NPellet / visualizer / src / lib / jsmol / j2s / JSV / export / FormContext.js View on Github external
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, a.substring (d, a.indexOf ("#end")), 0);
Clazz.innerTypeInstance (JSV["export"].FormContext.FormToken, this, null, "#end", 0);
return;
}} else if (a.indexOf ("#elseif") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #elseif";
return;
}this.cmdType = 3;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
c = true;
d.endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else if (a.indexOf ("#else") == b) {
if (this.b$["JSV.export.FormContext"].cmds.size () == 0) {
this.b$["JSV.export.FormContext"].strError = "misplaced #else";
return;
}this.cmdType = 2;
c = true;
this.cmdPtr = this.b$["JSV.export.FormContext"].cmds.remove (0).intValue ();
this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr).endPtr = this.ptr;
this.b$["JSV.export.FormContext"].cmds.add (0,  new Integer (this.ptr));
} else {
JU.Logger.warn ("??? " + a);
}if (c) {
var d = this.b$["JSV.export.FormContext"].formTokens.get (this.cmdPtr);
if (d.cmdType != 1 && d.cmdType != 3) {
this.b$["JSV.export.FormContext"].strError = "misplaced " + a.trim ();
return;
}}}this.b$["JSV.export.FormContext"].formTokens.addLast (this);
}, "~S,~N");
c$ = Clazz.p0p ();