Class TypeSystemUtil.TreeStatementPosition
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.util.TypeSystemUtil.TreeStatementPosition
-
- All Implemented Interfaces:
Comparable<TypeSystemUtil.TreeStatementPosition>
- Direct Known Subclasses:
TypeSystemUtil.IfPosition
,TypeSystemUtil.LoopPosition
,TypeSystemUtil.TryPosition
- Enclosing class:
- TypeSystemUtil
public abstract static class TypeSystemUtil.TreeStatementPosition extends Object implements Comparable<TypeSystemUtil.TreeStatementPosition>
Special abstract class for detected parts of tree statement ("if", "try", "for", "for each", "while") in BSL module
-
-
Field Summary
Fields Modifier and Type Field Description int
beginPos
int
endPos
List<org.eclipse.xtext.util.Pair<Integer,Integer>>
parts
List<Integer>
startPointsEachPart
Statement
treeStatement
boolean
useLastStateBeforeThis
-
Constructor Summary
Constructors Constructor Description TreeStatementPosition(Statement statement)
Initialize byStatement
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(TypeSystemUtil.TreeStatementPosition statement)
abstract void
computeOffsetTreeParts()
Computes positions of tree statement partsprotected void
computePartsByStatement(List<Statement> statements)
Computes positions of one tree statement part by list ofStatement
in this partprotected boolean
isReturnBreakContinueStatement(List<Statement> allStatement)
Checks that statements in part of tree statement contains "break", "return" or "continue" statement
-
-
-
Field Detail
-
endPos
public final int endPos
-
beginPos
public final int beginPos
-
treeStatement
public final Statement treeStatement
-
useLastStateBeforeThis
public boolean useLastStateBeforeThis
-
-
Method Detail
-
computeOffsetTreeParts
public abstract void computeOffsetTreeParts()
Computes positions of tree statement parts
-
compareTo
public int compareTo(TypeSystemUtil.TreeStatementPosition statement)
- Specified by:
compareTo
in interfaceComparable<TypeSystemUtil.TreeStatementPosition>
-
isReturnBreakContinueStatement
protected boolean isReturnBreakContinueStatement(List<Statement> allStatement)
Checks that statements in part of tree statement contains "break", "return" or "continue" statement- Parameters:
allStatement
- list of allStatement
in part- Returns:
- true, if contains
-
-