public final class BraceContext extends Object
// vvvvvvvvvvvvvvvvv -- related
if (condition1) {
// vvvvvvvvvvvvvvvvvvvvvvvvvvv -- related
} else if (elsecondition) {
...
} else {
// ^^^^^^ -- context
...
}
// ^ -- origin/caret location
Modifier and Type | Method and Description |
---|---|
static BraceContext |
create(Position start,
Position end)
Creates a new context area for the brace.
|
BraceContext |
createRelated(Position start,
Position end)
Creates a new BraceContext related to this one.
|
Position |
getEnd() |
BraceContext |
getRelated() |
Position |
getStart() |
public Position getStart()
public Position getEnd()
public BraceContext getRelated()
null
for none.public BraceContext createRelated(Position start, Position end)
start
- start of the contextual textend
- end of the textpublic static BraceContext create(Position start, Position end)
start
- start of the textend
- end of the textBuilt on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.