Package org.sonar.java.model
Class InternalSyntaxTrivia
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.model.InternalSyntaxTrivia
- All Implemented Interfaces:
SyntaxTrivia
,Tree
-
Nested Class Summary
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(TreeVisitor visitor) children()
Creates iterable for children of this node.int
column()
Warning: this is not the column number starting at 1 but the column offset starting at 0comment()
static SyntaxTrivia
int
getLine()
boolean
isLeaf()
kind()
range()
int
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, is, lastToken, parent, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
Constructor Details
-
InternalSyntaxTrivia
-
-
Method Details
-
comment
- Specified by:
comment
in interfaceSyntaxTrivia
-
startLine
public int startLine()- Specified by:
startLine
in interfaceSyntaxTrivia
-
kind
-
isLeaf
public boolean isLeaf() -
children
Description copied from class:JavaTree
Creates iterable for children of this node. Note that iterable may containnull
elements. -
accept
-
create
-
getLine
public int getLine() -
column
public int column()Description copied from interface:SyntaxTrivia
Warning: this is not the column number starting at 1 but the column offset starting at 0- Specified by:
column
in interfaceSyntaxTrivia
- Returns:
- column offset starting at 0
-
range
- Specified by:
range
in interfaceSyntaxTrivia
-