public static class SyntaxTree.Location<T extends Bytecode>
extends wybs.lang.SyntacticElement.Impl
| Constructor and Description |
|---|
Location(SyntaxTree parent,
T bytecode,
wybs.lang.Attribute... attributes) |
Location(SyntaxTree parent,
T bytecode,
List<wybs.lang.Attribute> attributes) |
Location(SyntaxTree parent,
Type[] types,
T bytecode,
wybs.lang.Attribute... attributes) |
Location(SyntaxTree parent,
Type[] types,
T bytecode,
List<wybs.lang.Attribute> attributes) |
Location(SyntaxTree parent,
Type type,
T bytecode,
wybs.lang.Attribute... attributes) |
Location(SyntaxTree parent,
Type type,
T bytecode,
List<wybs.lang.Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
SyntaxTree.Location<Bytecode.Block> |
getBlock(int i)
Get the ith block contained in this statement.
|
T |
getBytecode()
Get the bytecode associated with this location
|
SyntaxTree |
getEnclosingTree()
Get the enclosing syntax tree of this location.
|
int |
getIndex()
Get the index of this location in the enclosing syntax tree.
|
int |
getOpcode()
Get the underlying opcode for this location
|
SyntaxTree.Location<?> |
getOperand(int i)
Return the ith operand associated with this location.
|
SyntaxTree.Location<?>[] |
getOperandGroup(int i)
Get the ith operand group in this location.
|
SyntaxTree.Location<?>[] |
getOperands()
Return the ith operand associated with this location.
|
Type |
getType()
Get the declared type of this location.
|
Type |
getType(int i)
Get a specific type of this location.
|
Type[] |
getTypes()
Get the types for this location.
|
int |
numberOfBlocks()
Get the number of blocks contained in this statement.
|
int |
numberOfOperandGroups()
Get the number of operand groups in this location.
|
int |
numberOfOperands()
Get the number of operand groups in this location.
|
int |
numberOfTypes()
Get the number of types declared by this location.
|
String |
toString() |
public Location(SyntaxTree parent, T bytecode, wybs.lang.Attribute... attributes)
public Location(SyntaxTree parent, T bytecode, List<wybs.lang.Attribute> attributes)
public Location(SyntaxTree parent, Type type, T bytecode, wybs.lang.Attribute... attributes)
public Location(SyntaxTree parent, Type type, T bytecode, List<wybs.lang.Attribute> attributes)
public Location(SyntaxTree parent, Type[] types, T bytecode, wybs.lang.Attribute... attributes)
public Location(SyntaxTree parent, Type[] types, T bytecode, List<wybs.lang.Attribute> attributes)
public int getIndex()
public SyntaxTree getEnclosingTree()
public Type getType()
public Type getType(int i)
public Type[] getTypes()
public int numberOfTypes()
public T getBytecode()
public int getOpcode()
public int numberOfOperands()
public SyntaxTree.Location<?> getOperand(int i)
i - public SyntaxTree.Location<?>[] getOperands()
i - public int numberOfOperandGroups()
public SyntaxTree.Location<?>[] getOperandGroup(int i)
i - public int numberOfBlocks()
public SyntaxTree.Location<Bytecode.Block> getBlock(int i)
i - Copyright © 2017. All rights reserved.