This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
pack-priv static class | CRTable.
This class contains a CharacterRangeTableEntry. |
pack-priv class | CRTable.
This class contains methods to compute source positions for trees. |
pack-priv static class | CRTable.
This class contains source positions for some tree or list of trees. |
Modifier and Type | Field and Description |
---|---|
private final boolean | |
private EndPosTable | endPosTable
The object for ending positions stored in the parser. |
private ListBuffer | entries
The list of CRTable entries. |
pack-priv JCTree. | methodTree
The tree of the method this table is intended for. |
private Map | positions
The hashtable for source positions. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private int | encodePosition(int pos, Position.
Source file positions in CRT are integers in the format: line-number << LINESHIFT + column-number |
private String | |
public int | |
public void | |
public int | writeCRT(ByteBuffer
The buffer to write bytecodes to. databuf, Position.Compute source positions and write CRT to the databuf. |
crtDebug | back to summary |
---|---|
private final boolean crtDebug |
endPosTable | back to summary |
---|---|
private EndPosTable endPosTable The object for ending positions stored in the parser. |
entries | back to summary |
---|---|
private ListBuffer<CRTable. The list of CRTable entries. |
methodTree | back to summary |
---|---|
pack-priv JCTree. The tree of the method this table is intended for. We should traverse this tree to get source ranges. |
positions | back to summary |
---|---|
private Map<Object, CRTable. The hashtable for source positions. |
CRTable | back to summary |
---|---|
public CRTable(JCTree. Constructor |
encodePosition | back to summary |
---|---|
private int encodePosition(int pos, Position. Source file positions in CRT are integers in the format: line-number << LINESHIFT + column-number |
getTypes | back to summary |
---|---|
private String getTypes(int flags) Return string describing flags enabled. |
length | back to summary |
---|---|
public int length() Return the number of the entries. |
put | back to summary |
---|---|
public void put(Object tree, int flags, int startPc, int endPc) Create a new CRTEntry and add it to the entries.
|
writeCRT | back to summary |
---|---|
public int writeCRT(ByteBuffer databuf, Position. Compute source positions and write CRT to the databuf.
|
Modifier and Type | Field and Description |
---|---|
pack-priv int | endPc
The ending code position of this entry. |
pack-priv int | flags
The flags described in the CharacterRangeTable spec. |
pack-priv int | startPc
The starting code position of this entry. |
pack-priv Object | tree
A tree or a list of trees to obtain source positions. |
Access | Constructor and Description |
---|---|
pack-priv |
endPc | back to summary |
---|---|
pack-priv int endPc The ending code position of this entry. |
flags | back to summary |
---|---|
pack-priv int flags The flags described in the CharacterRangeTable spec. |
startPc | back to summary |
---|---|
pack-priv int startPc The starting code position of this entry. |
tree | back to summary |
---|---|
pack-priv Object tree A tree or a list of trees to obtain source positions. |
CRTEntry | back to summary |
---|---|
pack-priv CRTEntry(Object tree, int flags, int startPc, int endPc) Constructor |
Modifier and Type | Field and Description |
---|---|
pack-priv CRTable. | result
The result of the tree traversal methods. |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public CRTable. | |
public CRTable. | |
public CRTable. | |
public CRTable. | cspCatchers(List<JCTree.
Visitor method: compute source positions for a list of catch clauses in try statements. |
public int | |
public int | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void |
result | back to summary |
---|---|
pack-priv CRTable. The result of the tree traversal methods. |
SourceComputer | back to summary |
---|---|
pack-priv SourceComputer() |
csp | back to summary |
---|---|
public CRTable. Visitor method: compute source positions for a single node. |
csp | back to summary |
---|---|
public CRTable. Visitor method: compute source positions for a list of nodes. |
cspCases | back to summary |
---|---|
public CRTable. Visitor method: compute source positions for a list of case blocks of switch statements. |
cspCatchers | back to summary |
---|---|
public CRTable. Visitor method: compute source positions for a list of catch clauses in try statements. |
endPos | back to summary |
---|---|
public int endPos(JCTree tree) The end position of given tree, if it has defined endpos, NOPOS otherwise. |
startPos | back to summary |
---|---|
public int startPos(JCTree tree) The start position of given tree. |
visitApply | back to summary |
---|---|
public void visitApply(JCTree. Overrides com. |
visitAssert | back to summary |
---|---|
public void visitAssert(JCTree. Overrides com. |
visitAssign | back to summary |
---|---|
public void visitAssign(JCTree. Overrides com. |
visitAssignop | back to summary |
---|---|
public void visitAssignop(JCTree. Overrides com. |
visitBinary | back to summary |
---|---|
public void visitBinary(JCTree. Overrides com. |
visitBlock | back to summary |
---|---|
public void visitBlock(JCTree. Overrides com. |
visitBreak | back to summary |
---|---|
public void visitBreak(JCTree. Overrides com. |
visitCase | back to summary |
---|---|
public void visitCase(JCTree. Overrides com. |
visitCatch | back to summary |
---|---|
public void visitCatch(JCTree. Overrides com. |
visitConditional | back to summary |
---|---|
public void visitConditional(JCTree. Overrides com. |
visitConstantCaseLabel | back to summary |
---|---|
public void visitConstantCaseLabel(JCTree. Overrides com.
|
visitContinue | back to summary |
---|---|
public void visitContinue(JCTree. Overrides com. |
visitDefaultCaseLabel | back to summary |
---|---|
public void visitDefaultCaseLabel(JCTree. Overrides com.
|
visitDoLoop | back to summary |
---|---|
public void visitDoLoop(JCTree. Overrides com. |
visitErroneous | back to summary |
---|---|
public void visitErroneous(JCTree. Overrides com. |
visitExec | back to summary |
---|---|
public void visitExec(JCTree. Overrides com. |
visitForeachLoop | back to summary |
---|---|
public void visitForeachLoop(JCTree. Overrides com. |
visitForLoop | back to summary |
---|---|
public void visitForLoop(JCTree. Overrides com. |
visitIdent | back to summary |
---|---|
public void visitIdent(JCTree. Overrides com. |
visitIf | back to summary |
---|---|
public void visitIf(JCTree. |
visitIndexed | back to summary |
---|---|
public void visitIndexed(JCTree. Overrides com. |
visitLabelled | back to summary |
---|---|
public void visitLabelled(JCTree. Overrides com. |
visitLetExpr | back to summary |
---|---|
public void visitLetExpr(JCTree. Overrides com.
|
visitLiteral | back to summary |
---|---|
public void visitLiteral(JCTree. Overrides com. |
visitMethodDef | back to summary |
---|---|
public void visitMethodDef(JCTree. Overrides com. |
visitNewArray | back to summary |
---|---|
public void visitNewArray(JCTree. Overrides com. |
visitNewClass | back to summary |
---|---|
public void visitNewClass(JCTree. Overrides com. |
visitParens | back to summary |
---|---|
public void visitParens(JCTree. Overrides com. |
visitPatternCaseLabel | back to summary |
---|---|
public void visitPatternCaseLabel(JCTree. Overrides com.
|
visitReturn | back to summary |
---|---|
public void visitReturn(JCTree. Overrides com. |
visitSelect | back to summary |
---|---|
public void visitSelect(JCTree. Overrides com. |
visitSkip | back to summary |
---|---|
public void visitSkip(JCTree. Overrides com. |
visitSwitch | back to summary |
---|---|
public void visitSwitch(JCTree. Overrides com. |
visitSwitchExpression | back to summary |
---|---|
public void visitSwitchExpression(JCTree. Overrides com.
|
visitSynchronized | back to summary |
---|---|
public void visitSynchronized(JCTree. Overrides com. |
visitThrow | back to summary |
---|---|
public void visitThrow(JCTree. Overrides com. |
visitTree | back to summary |
---|---|
public void visitTree(JCTree tree) Overrides com. |
visitTry | back to summary |
---|---|
public void visitTry(JCTree. |
visitTypeApply | back to summary |
---|---|
public void visitTypeApply(JCTree. Overrides com. |
visitTypeArray | back to summary |
---|---|
public void visitTypeArray(JCTree. Overrides com. |
visitTypeCast | back to summary |
---|---|
public void visitTypeCast(JCTree. Overrides com. |
visitTypeIdent | back to summary |
---|---|
public void visitTypeIdent(JCTree. Overrides com. |
visitTypeParameter | back to summary |
---|---|
public void visitTypeParameter(JCTree. Overrides com. |
visitTypeTest | back to summary |
---|---|
public void visitTypeTest(JCTree. Overrides com. |
visitTypeUnion | back to summary |
---|---|
public void visitTypeUnion(JCTree. Overrides com.
|
visitUnary | back to summary |
---|---|
public void visitUnary(JCTree. Overrides com. |
visitVarDef | back to summary |
---|---|
public void visitVarDef(JCTree. Overrides com. |
visitWhileLoop | back to summary |
---|---|
public void visitWhileLoop(JCTree. Overrides com. |
visitWildcard | back to summary |
---|---|
public void visitWildcard(JCTree. Overrides com. |
visitYield | back to summary |
---|---|
public void visitYield(JCTree. Overrides com. |
Modifier and Type | Field and Description |
---|---|
pack-priv int | endPos
The ending source position. |
pack-priv int | startPos
The starting source position. |
Access | Constructor and Description |
---|---|
pack-priv | |
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv CRTable. | mergeWith(CRTable.
Compare the starting and the ending positions of the source range and combines them assigning the widest range to this. |
endPos | back to summary |
---|---|
pack-priv int endPos The ending source position. |
startPos | back to summary |
---|---|
pack-priv int startPos The starting source position. |
SourceRange | back to summary |
---|---|
pack-priv SourceRange() Constructor |
SourceRange | back to summary |
---|---|
pack-priv SourceRange(int startPos, int endPos) Constructor |
mergeWith | back to summary |
---|---|
pack-priv CRTable. Compare the starting and the ending positions of the source range and combines them assigning the widest range to this. |