Class IndexNode
java.lang.Object
me.topchetoeu.j2s.compilation.Node
me.topchetoeu.j2s.compilation.values.operations.IndexNode
- 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
assign
(CompileResult target, boolean pollute) void
beforeAssign
(CompileResult target) Called to perform calculations before the assigned value is calculatedvoid
beforeChange
(CompileResult target) void
compile
(CompileResult target, boolean pollute) void
compile
(CompileResult target, boolean dupObj, boolean pollute) void
compileFunctions
(CompileResult target) static void
indexLoad
(CompileResult target, Node index, boolean pollute) static void
indexStore
(CompileResult target, Node index, boolean pollute) static void
indexStorePushKey
(CompileResult target, Node index) parseIndex
(Source src, int i, Node prev, int precedence) parseMember
(Source src, int i, Node prev, int precedence) 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
loc, toAssignTarget
-
Field Details
-
object
-
index
-
-
Constructor Details
-
IndexNode
-
-
Method Details
-
compileFunctions
- Specified by:
compileFunctions
in classNode
-
beforeAssign
Description copied from interface:AssignTarget
Called to perform calculations before the assigned value is calculated- Specified by:
beforeAssign
in interfaceAssignTarget
-
beforeChange
- Specified by:
beforeChange
in interfaceChangeTarget
-
assign
- Specified by:
assign
in interfaceAssignTarget
-
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
-
compile
-
parseIndex
-
parseMember
-
indexStorePushKey
-
indexStore
-
indexLoad
-