mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
643 lines
12 KiB
Protocol Buffer
643 lines
12 KiB
Protocol Buffer
// This file was generated by proto-gen. Do not edit by hand.
|
|
syntax = "proto3";
|
|
|
|
package github.semantic.javaterm;
|
|
|
|
import "types.proto";
|
|
|
|
option java_package = "com.github.semantic.javaterm";
|
|
option go_package = "github.com/semantic/javaterm;java";
|
|
|
|
message JavaTerm {
|
|
JavaSyntax syntax = 1;
|
|
}
|
|
|
|
message JavaSyntax {
|
|
oneof syntax {
|
|
Comment comment = 1;
|
|
Class class = 2;
|
|
InterfaceDeclaration interfaceDeclaration = 3;
|
|
Method method = 4;
|
|
VariableDeclaration variableDeclaration = 5;
|
|
Plus plus = 6;
|
|
Minus minus = 7;
|
|
Times times = 8;
|
|
DividedBy dividedBy = 9;
|
|
Modulo modulo = 10;
|
|
Power power = 11;
|
|
Negate negate = 12;
|
|
FloorDivision floorDivision = 13;
|
|
Call call = 14;
|
|
LessThan lessThan = 15;
|
|
LessThanEqual lessThanEqual = 16;
|
|
GreaterThan greaterThan = 17;
|
|
GreaterThanEqual greaterThanEqual = 18;
|
|
Equal equal = 19;
|
|
StrictEqual strictEqual = 20;
|
|
Comparison comparison = 21;
|
|
BOr bOr = 22;
|
|
BXOr bXOr = 23;
|
|
BAnd bAnd = 24;
|
|
LShift lShift = 25;
|
|
RShift rShift = 26;
|
|
UnsignedRShift unsignedRShift = 27;
|
|
Complement complement = 28;
|
|
And and = 29;
|
|
Not not = 30;
|
|
Or or = 31;
|
|
XOr xOr = 32;
|
|
InstanceOf instanceOf = 33;
|
|
MemberAccess memberAccess = 34;
|
|
Subscript subscript = 35;
|
|
Member member = 36;
|
|
Super super = 37;
|
|
This this = 38;
|
|
AnnotatedType annotatedType = 39;
|
|
JavaAnnotation javaAnnotation = 40;
|
|
AnnotationField annotationField = 41;
|
|
AnnotationTypeElement annotationTypeElement = 42;
|
|
ArrayCreationExpression arrayCreationExpression = 43;
|
|
AssertStatement assertStatement = 44;
|
|
Asterisk asterisk = 45;
|
|
CatchType catchType = 46;
|
|
Constructor constructor = 47;
|
|
ClassBody classBody = 48;
|
|
ClassLiteral classLiteral = 49;
|
|
DefaultValue defaultValue = 50;
|
|
DimsExpr dimsExpr = 51;
|
|
EnumDeclaration enumDeclaration = 52;
|
|
GenericType genericType = 53;
|
|
Import import = 54;
|
|
Lambda lambda = 55;
|
|
LambdaBody lambdaBody = 56;
|
|
MethodReference methodReference = 57;
|
|
Module module = 58;
|
|
New new = 59;
|
|
NewKeyword newKeyword = 60;
|
|
Package package = 61;
|
|
SpreadParameter spreadParameter = 62;
|
|
StaticInitializer staticInitializer = 63;
|
|
Synchronized synchronized = 64;
|
|
TryWithResources tryWithResources = 65;
|
|
TypeParameter typeParameter = 66;
|
|
TypeWithModifiers typeWithModifiers = 67;
|
|
Variable variable = 68;
|
|
Wildcard wildcard = 69;
|
|
WildcardBounds wildcardBounds = 70;
|
|
Array array = 71;
|
|
Boolean boolean = 72;
|
|
Integer integer = 73;
|
|
Float float = 74;
|
|
Null null = 75;
|
|
String string = 76;
|
|
TextElement textElement = 77;
|
|
Assignment assignment = 78;
|
|
Break break = 79;
|
|
Catch catch = 80;
|
|
Continue continue = 81;
|
|
DoWhile doWhile = 82;
|
|
Finally finally = 83;
|
|
For for = 84;
|
|
ForEach forEach = 85;
|
|
If if = 86;
|
|
Match match = 87;
|
|
Pattern pattern = 88;
|
|
PostIncrement postIncrement = 89;
|
|
PostDecrement postDecrement = 90;
|
|
PreIncrement preIncrement = 91;
|
|
PreDecrement preDecrement = 92;
|
|
While while = 93;
|
|
Statements statements = 94;
|
|
Throw throw = 95;
|
|
Try try = 96;
|
|
Context context = 97;
|
|
Empty empty = 98;
|
|
Error error = 99;
|
|
Identifier identifier = 100;
|
|
AccessibilityModifier accessibilityModifier = 101;
|
|
TypeArray typeArray = 102;
|
|
Bool bool = 103;
|
|
Int int = 104;
|
|
Void void = 105;
|
|
TypeFloat typeFloat = 106;
|
|
Annotation annotation = 107;
|
|
Return return = 108;
|
|
List list = 109;
|
|
}
|
|
}
|
|
|
|
message Comment {
|
|
string commentContent = 1;
|
|
}
|
|
|
|
message Class {
|
|
repeated JavaTerm classContext = 1;
|
|
JavaTerm classIdentifier = 2;
|
|
repeated JavaTerm classSuperclasses = 3;
|
|
JavaTerm classBody = 4;
|
|
}
|
|
|
|
message InterfaceDeclaration {
|
|
repeated JavaTerm interfaceDeclarationContext = 1;
|
|
JavaTerm interfaceDeclarationIdentifier = 2;
|
|
repeated JavaTerm interfaceDeclarationSuperInterfaces = 3;
|
|
JavaTerm interfaceDeclarationBody = 4;
|
|
}
|
|
|
|
message Method {
|
|
repeated JavaTerm methodContext = 1;
|
|
JavaTerm methodReceiver = 2;
|
|
JavaTerm methodName = 3;
|
|
repeated JavaTerm methodParameters = 4;
|
|
JavaTerm methodBody = 5;
|
|
}
|
|
|
|
message VariableDeclaration {
|
|
repeated JavaTerm variableDeclarations = 1;
|
|
}
|
|
|
|
message Plus {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Minus {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Times {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message DividedBy {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Modulo {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Power {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Negate {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message FloorDivision {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Call {
|
|
repeated JavaTerm callContext = 1;
|
|
JavaTerm callFunction = 2;
|
|
repeated JavaTerm callParams = 3;
|
|
JavaTerm callBlock = 4;
|
|
}
|
|
|
|
message LessThan {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message LessThanEqual {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message GreaterThan {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message GreaterThanEqual {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Equal {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message StrictEqual {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Comparison {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message BOr {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message BXOr {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message BAnd {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message LShift {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message RShift {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message UnsignedRShift {
|
|
JavaTerm left = 1;
|
|
JavaTerm right = 2;
|
|
}
|
|
|
|
message Complement {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message And {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Not {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message Or {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message XOr {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message InstanceOf {
|
|
JavaTerm instanceOfSubject = 1;
|
|
JavaTerm instanceOfObject = 2;
|
|
}
|
|
|
|
message MemberAccess {
|
|
JavaTerm lhs = 1;
|
|
bytes rhs = 2;
|
|
}
|
|
|
|
message Subscript {
|
|
JavaTerm lhs = 1;
|
|
repeated JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Member {
|
|
JavaTerm lhs = 1;
|
|
JavaTerm rhs = 2;
|
|
}
|
|
|
|
message Super { }
|
|
|
|
message This { }
|
|
|
|
message AnnotatedType {
|
|
repeated JavaTerm annotationes = 1;
|
|
JavaTerm annotatedType = 2;
|
|
}
|
|
|
|
message JavaAnnotation {
|
|
JavaTerm annotationName = 1;
|
|
repeated JavaTerm annotationField = 2;
|
|
}
|
|
|
|
message AnnotationField {
|
|
JavaTerm annotationFieldName = 1;
|
|
JavaTerm annotationFieldValue = 2;
|
|
}
|
|
|
|
message AnnotationTypeElement {
|
|
repeated JavaTerm modifiers = 1;
|
|
JavaTerm annotationType = 2;
|
|
JavaTerm identifier = 3;
|
|
repeated JavaTerm dims = 4;
|
|
JavaTerm defaultValue = 5;
|
|
}
|
|
|
|
message ArrayCreationExpression {
|
|
JavaTerm arrayCreationExpressionType = 1;
|
|
repeated JavaTerm arrayCreationExpressionDims = 2;
|
|
}
|
|
|
|
message AssertStatement {
|
|
JavaTerm assertLHS = 1;
|
|
repeated JavaTerm assertRHS = 2;
|
|
}
|
|
|
|
message Asterisk { }
|
|
|
|
message CatchType {
|
|
repeated JavaTerm types = 1;
|
|
}
|
|
|
|
message Constructor {
|
|
repeated JavaTerm constructorModifiers = 1;
|
|
repeated JavaTerm constructorTypeParams = 2;
|
|
JavaTerm constructorIdentifier = 3;
|
|
repeated JavaTerm constructorParams = 4;
|
|
repeated JavaTerm constructorThrows = 5;
|
|
JavaTerm constructorBody = 6;
|
|
}
|
|
|
|
message ClassBody {
|
|
repeated JavaTerm classBodyExpression = 1;
|
|
}
|
|
|
|
message ClassLiteral {
|
|
JavaTerm classLiteralType = 1;
|
|
}
|
|
|
|
message DefaultValue {
|
|
JavaTerm defaultValueElement = 1;
|
|
}
|
|
|
|
message DimsExpr {
|
|
repeated JavaTerm dimsExprAnnotation = 1;
|
|
repeated JavaTerm dimsExprExpression = 2;
|
|
}
|
|
|
|
message EnumDeclaration {
|
|
repeated JavaTerm enumDeclarationModifier = 1;
|
|
JavaTerm enumDeclarationIdentifier = 2;
|
|
repeated JavaTerm enumDeclarationSuperInterfaces = 3;
|
|
repeated JavaTerm enumDeclarationConstant = 4;
|
|
repeated JavaTerm enumDeclarationBody = 5;
|
|
}
|
|
|
|
message GenericType {
|
|
JavaTerm genericTypeIdentifier = 1;
|
|
repeated JavaTerm genericTypeArguments = 2;
|
|
}
|
|
|
|
message Import {
|
|
repeated JavaTerm imports = 1;
|
|
}
|
|
|
|
message Lambda {
|
|
repeated JavaTerm lambdaParams = 1;
|
|
JavaTerm lambdaBody = 2;
|
|
}
|
|
|
|
message LambdaBody {
|
|
repeated JavaTerm lambdaBodyExpression = 1;
|
|
}
|
|
|
|
message MethodReference {
|
|
JavaTerm methodReferenceType = 1;
|
|
repeated JavaTerm methodReferenceTypeArgs = 2;
|
|
JavaTerm methodReferenceIdentifier = 3;
|
|
}
|
|
|
|
message Module {
|
|
JavaTerm moduleIdentifier = 1;
|
|
repeated JavaTerm moduleStatements = 2;
|
|
}
|
|
|
|
message New {
|
|
JavaTerm newType = 1;
|
|
repeated JavaTerm newArgs = 2;
|
|
repeated JavaTerm newClassBody = 3;
|
|
}
|
|
|
|
message NewKeyword { }
|
|
|
|
message Package {
|
|
repeated JavaTerm packages = 1;
|
|
}
|
|
|
|
message SpreadParameter {
|
|
JavaTerm spreadParameterVariableDeclarator = 1;
|
|
}
|
|
|
|
message StaticInitializer {
|
|
JavaTerm staticInitializerBlock = 1;
|
|
}
|
|
|
|
message Synchronized {
|
|
JavaTerm synchronizedSubject = 1;
|
|
JavaTerm synchronizedBody = 2;
|
|
}
|
|
|
|
message TryWithResources {
|
|
repeated JavaTerm tryResources = 1;
|
|
JavaTerm tryBody = 2;
|
|
repeated JavaTerm tryCatch = 3;
|
|
}
|
|
|
|
message TypeParameter {
|
|
repeated JavaTerm typeParamAnnotation = 1;
|
|
JavaTerm typeParamIdentifier = 2;
|
|
repeated JavaTerm typeParamTypeBound = 3;
|
|
}
|
|
|
|
message TypeWithModifiers {
|
|
repeated JavaTerm types = 1;
|
|
JavaTerm modifier = 2;
|
|
}
|
|
|
|
message Variable {
|
|
repeated JavaTerm variableModifiers = 1;
|
|
JavaTerm variableType = 2;
|
|
JavaTerm variableName = 3;
|
|
}
|
|
|
|
message Wildcard {
|
|
repeated JavaTerm wildcardAnnotation = 1;
|
|
repeated JavaTerm wildcardBounds = 2;
|
|
}
|
|
|
|
message WildcardBounds {
|
|
oneof sum {
|
|
JavaTerm wildcardBoundExtendsType = 1;
|
|
JavaTerm wildcardBoundSuperType = 2;
|
|
}
|
|
}
|
|
|
|
message Array {
|
|
repeated JavaTerm arrayElements = 1;
|
|
}
|
|
|
|
message Boolean {
|
|
bool booleanContent = 1;
|
|
}
|
|
|
|
message Integer {
|
|
string integerContent = 1;
|
|
}
|
|
|
|
message Float {
|
|
string floatContent = 1;
|
|
}
|
|
|
|
message Null { }
|
|
|
|
message String {
|
|
repeated JavaTerm stringElements = 1;
|
|
}
|
|
|
|
message TextElement {
|
|
string textElementContent = 1;
|
|
}
|
|
|
|
message Assignment {
|
|
repeated JavaTerm assignmentContext = 1;
|
|
JavaTerm assignmentTarget = 2;
|
|
JavaTerm assignmentValue = 3;
|
|
}
|
|
|
|
message Break {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message Catch {
|
|
JavaTerm catchException = 1;
|
|
JavaTerm catchBody = 2;
|
|
}
|
|
|
|
message Continue {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message DoWhile {
|
|
JavaTerm doWhileCondition = 1;
|
|
JavaTerm doWhileBody = 2;
|
|
}
|
|
|
|
message Finally {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message For {
|
|
JavaTerm forBefore = 1;
|
|
JavaTerm forCondition = 2;
|
|
JavaTerm forStep = 3;
|
|
JavaTerm forBody = 4;
|
|
}
|
|
|
|
message ForEach {
|
|
JavaTerm forEachBinding = 1;
|
|
JavaTerm forEachSubject = 2;
|
|
JavaTerm forEachBody = 3;
|
|
}
|
|
|
|
message If {
|
|
JavaTerm ifCondition = 1;
|
|
JavaTerm ifThenBody = 2;
|
|
JavaTerm ifElseBody = 3;
|
|
}
|
|
|
|
message Match {
|
|
JavaTerm matchSubject = 1;
|
|
JavaTerm matchPatterns = 2;
|
|
}
|
|
|
|
message Pattern {
|
|
JavaTerm value = 1;
|
|
JavaTerm patternBody = 2;
|
|
}
|
|
|
|
message PostIncrement {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message PostDecrement {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message PreIncrement {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message PreDecrement {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message While {
|
|
JavaTerm whileCondition = 1;
|
|
JavaTerm whileBody = 2;
|
|
}
|
|
|
|
message Statements {
|
|
repeated JavaTerm statements = 1;
|
|
}
|
|
|
|
message Throw {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message Try {
|
|
JavaTerm tryBody = 1;
|
|
repeated JavaTerm tryCatch = 2;
|
|
}
|
|
|
|
message Context {
|
|
repeated JavaTerm contextTerms = 1;
|
|
JavaTerm contextSubject = 2;
|
|
}
|
|
|
|
message Empty { }
|
|
|
|
message Error {
|
|
repeated ErrorSite errorCallStack = 1;
|
|
repeated string errorExpected = 2;
|
|
string errorActual = 3;
|
|
repeated JavaTerm errorChildren = 4;
|
|
}
|
|
|
|
message Identifier {
|
|
bytes name = 1;
|
|
}
|
|
|
|
message AccessibilityModifier {
|
|
string contents = 1;
|
|
}
|
|
|
|
message TypeArray {
|
|
repeated JavaTerm arraySize = 1;
|
|
JavaTerm arrayElementType = 2;
|
|
}
|
|
|
|
message Bool { }
|
|
|
|
message Int { }
|
|
|
|
message Void { }
|
|
|
|
message TypeFloat { }
|
|
|
|
message Annotation {
|
|
JavaTerm annotationSubject = 1;
|
|
JavaTerm annotationType = 2;
|
|
}
|
|
|
|
message Return {
|
|
JavaTerm value = 1;
|
|
}
|
|
|
|
message List {
|
|
repeated JavaTerm listContent = 1;
|
|
}
|