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 TypeMethodDescriptionvoidaccept(TreeVisitor visitor) children()Creates iterable for children of this node.intcolumn()Warning: this is not the column number starting at 1 but the column offset starting at 0comment()static SyntaxTriviaintgetLine()booleanisLeaf()kind()range()intMethods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, is, lastToken, parent, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
Constructor Details
-
InternalSyntaxTrivia
-
-
Method Details
-
comment
- Specified by:
commentin interfaceSyntaxTrivia
-
startLine
public int startLine()- Specified by:
startLinein interfaceSyntaxTrivia
-
kind
-
isLeaf
public boolean isLeaf() -
children
Description copied from class:JavaTreeCreates iterable for children of this node. Note that iterable may containnullelements. -
accept
-
create
-
getLine
public int getLine() -
column
public int column()Description copied from interface:SyntaxTriviaWarning: this is not the column number starting at 1 but the column offset starting at 0- Specified by:
columnin interfaceSyntaxTrivia- Returns:
- column offset starting at 0
-
range
- Specified by:
rangein interfaceSyntaxTrivia
-