Class VariableNode
java.lang.Object
me.topchetoeu.j2s.compilation.Node
me.topchetoeu.j2s.compilation.values.VariableNode
- All Implemented Interfaces:
AssignTarget
,AssignTargetLike
,ChangeTarget
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAssign
(CompileResult target, boolean pollute) Called to perform the actual assignemnt.void
beforeChange
(CompileResult target) void
compile
(CompileResult target, boolean pollute) void
compileFunctions
(CompileResult target) static ParseRes<VariableNode>
static me.topchetoeu.j2s.common.Instruction
toGet
(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name) static me.topchetoeu.j2s.common.Instruction
toGet
(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name, boolean keep, boolean forceGet) static me.topchetoeu.j2s.common.Instruction
toSet
(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name, boolean keep, boolean init) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.topchetoeu.j2s.compilation.patterns.AssignTarget
assign, beforeAssign, loc, toAssignTarget
-
Field Details
-
name
-
-
Constructor Details
-
VariableNode
-
-
Method Details
-
compileFunctions
- Specified by:
compileFunctions
in classNode
-
assignName
-
beforeChange
- Specified by:
beforeChange
in interfaceChangeTarget
-
afterAssign
Description copied from interface:AssignTarget
Called to perform the actual assignemnt. Between the `beforeAssign` and this call a single value will have been pushed to the stack- Specified by:
afterAssign
in interfaceAssignTarget
pollute
- Whether or not to leave the original value on the stack
-
compile
-
toGet
public static me.topchetoeu.j2s.common.Instruction toGet(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name, boolean keep, boolean forceGet) -
toGet
public static me.topchetoeu.j2s.common.Instruction toGet(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name) -
toSet
public static me.topchetoeu.j2s.common.Instruction toSet(CompileResult target, me.topchetoeu.j2s.common.Location loc, String name, boolean keep, boolean init) -
parse
-