public interface Instruction
Instruction is an abstraction of a single
JSOP operation.
Each operation is a concrete sub-interface of Instruction and extending
it by the specific properties of the operation. There is no exact 1 : 1 mapping
between a JSOP operation and a sub-interface, i.e. in JSOP there
is one add operation for adding nodes and properties whereas there are two specific
sub-interfaces; one for adding a node and one for adding a property.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Instruction.AddNodeInstruction
The add node operation => "+" STRING ":" (OBJECT).
|
static interface |
Instruction.CopyNodeInstruction
The copy node operation => "*" STRING ":" STRING
|
static interface |
Instruction.MoveNodeInstruction
The move node operation => ">" STRING ":" STRING
|
static interface |
Instruction.RemoveNodeInstruction
The remove node operation => "-" STRING
|
static interface |
Instruction.SetPropertyInstruction
The set property operation => "^" STRING ":" ATOM | ARRAY
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(InstructionVisitor visitor)
Accepts an
InstructionVisitor. |
String |
getPath()
Returns the path of this
Instruction. |
void accept(InstructionVisitor visitor)
InstructionVisitor.visitor - The visitor.String getPath()
Instruction.
The semantics of this property differ depending on the concrete subinterface.
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.