| Package | Description |
|---|---|
| org.sonar.java.ast.parser | |
| org.sonar.java.model | |
| org.sonar.java.model.declaration | |
| org.sonar.java.model.expression | |
| org.sonar.plugins.java.api.tree |
Provides interfaces to represent Java source code as syntax tree.
|
| Modifier and Type | Method and Description |
|---|---|
TypeTree |
TreeFactory.annotationIdentifier(InternalSyntaxToken firstIdentifier,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<InternalSyntaxToken,InternalSyntaxToken>>> rests) |
TypeTree |
JavaGrammar.CATCH_TYPE() |
TypeTree |
TreeFactory.newBasicTypeArgument(TypeTree type) |
TypeTree |
TreeFactory.newCatchType(TypeTree qualifiedIdentifier,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<InternalSyntaxToken,TypeTree>>> rests) |
TypeTree |
TreeFactory.newType(TypeTree basicOrClassType,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<com.sonar.sslr.api.typed.Optional<List<AnnotationTreeImpl>>,TreeFactory.Tuple<InternalSyntaxToken,InternalSyntaxToken>>>> dims) |
TypeTree |
JavaGrammar.TYPE() |
| Modifier and Type | Method and Description |
|---|---|
ClassTreeImpl |
TreeFactory.completeClassDeclaration(InternalSyntaxToken classSyntaxToken,
InternalSyntaxToken identifierToken,
com.sonar.sslr.api.typed.Optional<TypeParameterListTreeImpl> typeParameters,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,TypeTree>> extendsClause,
com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<InternalSyntaxToken,QualifiedIdentifierListTreeImpl>> implementsClause,
ClassTreeImpl partial) |
TypeTree |
TreeFactory.newCatchType(TypeTree qualifiedIdentifier,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<InternalSyntaxToken,TypeTree>>> rests) |
QualifiedIdentifierListTreeImpl |
TreeFactory.newQualifiedIdentifierList(TypeTree qualifiedIdentifier,
com.sonar.sslr.api.typed.Optional<List<TreeFactory.Tuple<InternalSyntaxToken,TypeTree>>> rests) |
| Constructor and Description |
|---|
QualifiedIdentifierListTreeImpl(List<TypeTree> qualifiedIdentifiers,
List<SyntaxToken> separators) |
TypeUnionListTreeImpl(List<TypeTree> types,
List<SyntaxToken> separatorsList) |
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaTree.ArrayTypeTreeImpl |
static class |
JavaTree.ParameterizedTypeTreeImpl |
static class |
JavaTree.PrimitiveTypeTreeImpl |
static class |
JavaTree.UnionTypeTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
TypeTree |
JavaTree.WildcardTreeImpl.bound() |
TypeTree |
JavaTree.ParameterizedTypeTreeImpl.type() |
TypeTree |
JavaTree.ArrayTypeTreeImpl.type() |
| Modifier and Type | Method and Description |
|---|---|
ListTree<TypeTree> |
JavaTree.UnionTypeTreeImpl.typeAlternatives() |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaTree.ArrayTypeTreeImpl.completeType(TypeTree type) |
void |
JavaTree.ArrayTypeTreeImpl.setLastChildType(TypeTree type) |
| Constructor and Description |
|---|
JavaTree.ArrayTypeTreeImpl(TypeTree type,
List<AnnotationTreeImpl> annotations,
InternalSyntaxToken ellispsisToken) |
JavaTree.ArrayTypeTreeImpl(TypeTree type,
List<AnnotationTreeImpl> annotations,
InternalSyntaxToken openBracketToken,
InternalSyntaxToken closeBracketToken) |
JavaTree.ParameterizedTypeTreeImpl(TypeTree type,
TypeArgumentListTreeImpl typeArguments) |
JavaTree.WildcardTreeImpl(Tree.Kind kind,
InternalSyntaxToken extendsOrSuperToken,
TypeTree bound) |
| Modifier and Type | Method and Description |
|---|---|
TypeTree |
AnnotationTreeImpl.annotationType() |
TypeTree |
MethodTreeImpl.returnType() |
TypeTree |
ClassTreeImpl.superClass() |
TypeTree |
VariableTreeImpl.type() |
| Modifier and Type | Method and Description |
|---|---|
ListTree<TypeTree> |
ClassTreeImpl.superInterfaces() |
ListTree<TypeTree> |
MethodTreeImpl.throwsClauses() |
| Modifier and Type | Method and Description |
|---|---|
MethodTreeImpl |
MethodTreeImpl.complete(TypeTree returnType,
IdentifierTree simpleName,
SyntaxToken semicolonToken) |
VariableTreeImpl |
VariableTreeImpl.completeModifiersAndType(ModifiersTreeImpl modifiers,
TypeTree type) |
ClassTreeImpl |
ClassTreeImpl.completeSuperclass(SyntaxToken extendsKeyword,
TypeTree superClass) |
VariableTreeImpl |
VariableTreeImpl.completeType(TypeTree type) |
VariableTreeImpl |
VariableTreeImpl.completeTypeAndInitializer(TypeTree type,
InternalSyntaxToken equalToken,
ExpressionTree initializer) |
| Constructor and Description |
|---|
AnnotationTreeImpl(InternalSyntaxToken atToken,
TypeTree annotationType,
ArgumentListTreeImpl arguments) |
MethodTreeImpl(TypeTree returnType,
IdentifierTree simpleName,
FormalParametersListTreeImpl parameters,
SyntaxToken throwsToken,
ListTree<TypeTree> throwsClauses,
BlockTree block,
SyntaxToken semicolonToken) |
| Constructor and Description |
|---|
MethodTreeImpl(TypeTree returnType,
IdentifierTree simpleName,
FormalParametersListTreeImpl parameters,
SyntaxToken throwsToken,
ListTree<TypeTree> throwsClauses,
BlockTree block,
SyntaxToken semicolonToken) |
| Modifier and Type | Class and Description |
|---|---|
class |
IdentifierTreeImpl |
class |
MemberSelectExpressionTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
TypeTree |
NewClassTreeImpl.identifier() |
TypeTree |
TypeCastExpressionTreeImpl.type() |
TypeTree |
NewArrayTreeImpl.type() |
TypeTree |
InstanceOfTreeImpl.type() |
| Modifier and Type | Method and Description |
|---|---|
NewArrayTreeImpl |
NewArrayTreeImpl.complete(TypeTree type) |
NewClassTreeImpl |
NewClassTreeImpl.completeWithIdentifier(TypeTree identifier) |
| Constructor and Description |
|---|
InstanceOfTreeImpl(InternalSyntaxToken instanceofToken,
TypeTree type) |
TypeCastExpressionTreeImpl(TypeTree type,
InternalSyntaxToken closeParenToken,
ExpressionTree expression) |
TypeCastExpressionTreeImpl(TypeTree type,
InternalSyntaxToken andToken,
ListTree<Tree> bounds,
InternalSyntaxToken closeParenToken,
ExpressionTree expression) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ArrayTypeTree
Array type.
|
interface |
IdentifierTree
Identifier expression.
|
interface |
MemberSelectExpressionTree
Member select expression.
|
interface |
ParameterizedTypeTree
Parameterized type.
|
interface |
PrimitiveTypeTree
Primitive type.
|
interface |
UnionTypeTree
Union type expression in a multi-catch.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InferedTypeTree |
| Modifier and Type | Method and Description |
|---|---|
TypeTree |
AnnotationTree.annotationType() |
TypeTree |
WildcardTree.bound() |
TypeTree |
NewClassTree.identifier() |
TypeTree |
MethodTree.returnType() |
TypeTree |
ClassTree.superClass() |
TypeTree |
ParameterizedTypeTree.type() |
TypeTree |
VariableTree.type() |
TypeTree |
TypeCastTree.type() |
TypeTree |
NewArrayTree.type() |
TypeTree |
InstanceOfTree.type() |
TypeTree |
ArrayTypeTree.type() |
| Modifier and Type | Method and Description |
|---|---|
ListTree<TypeTree> |
ClassTree.superInterfaces() |
ListTree<TypeTree> |
MethodTree.throwsClauses() |
ListTree<TypeTree> |
UnionTypeTree.typeAlternatives() |
Copyright © 2012–2016 SonarSource. All rights reserved.