Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 3b9d93c

Browse files
authored
Merge pull request #38 from abeaumont/feature/improve-annotations
Add support for all currently supported node types.
2 parents dbfa4b2 + d035729 commit 3b9d93c

51 files changed

Lines changed: 503 additions & 359 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ANNOTATION.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
| Path | Action |
22
|------|--------|
3-
| /self::\*\[not\(@InternalType='CompilationUnit'\)\] | Error |
43
| /self::\*\[@InternalType='CompilationUnit'\] | File |
54
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='QualifiedName'\] | QualifiedIdentifier, Expression |
65
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SimpleName'\] | SimpleIdentifier, Expression |
@@ -24,9 +23,15 @@
2423
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodDeclaration'\]/\*\[@internalRole\]\[@internalRole='parameters'\] | FunctionDeclarationArgument |
2524
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodDeclaration'\]/\*\[@internalRole\]\[@internalRole='parameters'\]/self::\*\[@varargs\]\[@varargs='true'\] | FunctionDeclarationVarArgsList |
2625
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodDeclaration'\]/\*\[@internalRole\]\[@internalRole='parameters'\]/\*\[@internalRole\]\[@internalRole='name'\] | FunctionDeclarationArgumentName |
26+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LambdaExpression'\] | FunctionDeclaration, Incomplete |
27+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LambdaExpression'\]/\*\[@internalRole\]\[@internalRole='body'\] | FunctionDeclarationBody |
28+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LambdaExpression'\]/\*\[@internalRole\]\[@internalRole='parameters'\] | FunctionDeclarationArgument |
29+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LambdaExpression'\]/\*\[@internalRole\]\[@internalRole='parameters'\]/self::\*\[@varargs\]\[@varargs='true'\] | FunctionDeclarationVarArgsList |
30+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LambdaExpression'\]/\*\[@internalRole\]\[@internalRole='parameters'\]/\*\[@internalRole\]\[@internalRole='name'\] | FunctionDeclarationArgumentName |
2731
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='AnnotationTypeMemberDeclaration'\] | Incomplete |
2832
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='EnumConstantDeclaration'\] | Incomplete |
2933
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='FieldDeclaration'\] | Incomplete |
34+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Initializer'\] | Incomplete |
3035
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SingleVariableDeclaration'\] | Incomplete |
3136
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='VariableDeclarationExpression'\] | Expression, Incomplete |
3237
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='VariableDeclarationFragment'\] | Incomplete |
@@ -37,10 +42,23 @@
3742
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='NumberLiteral'\] | NumberLiteral, Expression |
3843
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='StringLiteral'\] | StringLiteral, Expression |
3944
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TypeLiteral'\] | TypeLiteral, Expression |
45+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ClassInstanceCreation'\] | Call, Expression, Incomplete |
46+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ClassInstanceCreation'\]/\*\[@internalRole\]\[@internalRole='type'\] | CallCallee |
47+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ClassInstanceCreation'\]/\*\[@internalRole\]\[@internalRole='arguments'\] | CallPositionalArgument |
48+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ConstructorInvocation'\] | Call, Statement, Incomplete |
49+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ConstructorInvocation'\]/\*\[@internalRole\]\[@internalRole='type'\] | CallCallee |
50+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ConstructorInvocation'\]/\*\[@internalRole\]\[@internalRole='arguments'\] | CallPositionalArgument |
4051
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodInvocation'\] | Call, Expression |
4152
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodInvocation'\]/\*\[@internalRole\]\[@internalRole='expression'\] | CallReceiver |
4253
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodInvocation'\]/\*\[@internalRole\]\[@internalRole='name'\] | CallCallee |
4354
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodInvocation'\]/\*\[@internalRole\]\[@internalRole='arguments'\] | CallPositionalArgument |
55+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperConstructorInvocation'\] | Call, Statement, Incomplete |
56+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperConstructorInvocation'\]/\*\[@internalRole\]\[@internalRole='expression'\] | CallReceiver |
57+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperConstructorInvocation'\]/\*\[@internalRole\]\[@internalRole='arguments'\] | CallPositionalArgument |
58+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperMethodInvocation'\] | Call, Expression, Incomplete |
59+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperMethodInvocation'\]/\*\[@internalRole\]\[@internalRole='qualifier'\] | CallCallee |
60+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperMethodInvocation'\]/\*\[@internalRole\]\[@internalRole='name'\] | CallCallee |
61+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperMethodInvocation'\]/\*\[@internalRole\]\[@internalRole='arguments'\] | CallPositionalArgument |
4462
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='IfStatement'\] | If, Statement |
4563
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='IfStatement'\]/\*\[@internalRole\]\[@internalRole='expression'\] | IfCondition |
4664
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='IfStatement'\]/\*\[@internalRole\]\[@internalRole='thenStatement'\] | IfBody |
@@ -107,6 +125,26 @@
107125
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Assignment'\]/self::\*\[not\(@operator\]\[@operator='='\)\]/self::\*\[@operator\]\[@operator='<<='\] | OpBitwiseLeftShift |
108126
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Assignment'\]/self::\*\[not\(@operator\]\[@operator='='\)\]/self::\*\[@operator\]\[@operator='>>='\] | OpBitwiseRightShift |
109127
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Assignment'\]/self::\*\[not\(@operator\]\[@operator='='\)\]/self::\*\[@operator\]\[@operator='>>>='\] | OpBitwiseUnsignedRightShift |
128+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ArrayType'\] | Incomplete |
129+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='IntersectionType'\] | Incomplete |
130+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='NameQualifiedType'\] | Incomplete |
131+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ParameterizedType'\] | Incomplete |
132+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='PrimitiveType'\] | Incomplete |
133+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='QualifiedType'\] | Incomplete |
134+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SimpleType'\] | Incomplete |
135+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='UnionType'\] | Incomplete |
136+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='WildcardType'\] | Incomplete |
137+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='public'\] | VisibleFromWorld |
138+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='protected'\] | VisibleFromSubtype |
139+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='private'\] | VisibleFromInstance |
140+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='abstract'\] | Incomplete |
141+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='static'\] | Incomplete |
142+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='final'\] | Incomplete |
143+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='strictfp'\] | Incomplete |
144+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='transient'\] | Incomplete |
145+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='volatile'\] | Incomplete |
146+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='synchronized'\] | Incomplete |
147+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Modifier'\]/self::\*\[@Token='native'\] | Incomplete |
110148
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TryStatement'\] | Try, Statement |
111149
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TryStatement'\]/\*\[@internalRole\]\[@internalRole='body'\] | TryBody |
112150
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TryStatement'\]/\*\[@internalRole\]\[@internalRole='catchClauses'\] | TryCatch |
@@ -115,9 +153,27 @@
115153
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='AssertStatement'\] | Assert, Statement |
116154
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ArrayAccess'\] | Expression, Incomplete |
117155
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ArrayCreation'\] | Expression, Incomplete |
156+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='CastExpression'\] | Expression, Incomplete |
157+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='CreationReference'\] | Expression, Incomplete |
158+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ExpressionMethodReference'\] | Expression, Incomplete |
159+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ParenthesizedExpression'\] | Expression, Incomplete |
160+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SuperMethodReference'\] | Expression, Incomplete |
118161
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ThisExpression'\] | This, Expression |
119162
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Block'\] | BlockScope, Block, Statement |
163+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='BreakStatement'\] | Break, Statement |
164+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='EmptyStatement'\] | Statement |
120165
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ExpressionStatement'\] | Statement |
166+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='LabeledStatement'\] | Statement, Incomplete |
121167
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ReturnStatement'\] | Return, Statement |
122-
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='BreakStatement'\] | Break, Statement |
168+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='SynchronizedStatement'\] | Statement, Incomplete |
169+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='ArrayInitializer'\] | Incomplete |
170+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Dimension'\] | Incomplete |
123171
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='Javadoc'\] | Documentation, Comment |
172+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='NormalAnnotation'\] | Incomplete |
173+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MemberRef'\] | Incomplete |
174+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MemberValuePair'\] | Incomplete |
175+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodRef'\] | Incomplete |
176+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='MethodRefParameter'\] | Incomplete |
177+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TagElement'\] | Incomplete |
178+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TextElement'\] | Incomplete |
179+
| /self::\*\[@InternalType='CompilationUnit'\]//\*\[@InternalType='TypeParameter'\] | Incomplete |

0 commit comments

Comments
 (0)