UNPKG

@vlocode/apex

Version:
1,032 lines (1,031 loc) 718 kB
"use strict"; // Generated from ./grammar/ApexParser.g4 by ANTLR 4.13.1 var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.TryStatementContext = exports.DoWhileStatementContext = exports.WhileStatementContext = exports.ForStatementContext = exports.WhenLiteralContext = exports.WhenValueContext = exports.WhenControlContext = exports.SwitchStatementContext = exports.IfStatementContext = exports.StatementContext = exports.LocalVariableDeclarationContext = exports.LocalVariableDeclarationStatementContext = exports.BlockContext = exports.ElementValueArrayInitializerContext = exports.ElementValueContext = exports.ElementValuePairContext = exports.ElementValuePairsContext = exports.AnnotationContext = exports.LiteralContext = exports.QualifiedNameContext = exports.FormalParameterContext = exports.FormalParameterListContext = exports.FormalParametersContext = exports.TypeArgumentsContext = exports.TypeNameContext = exports.ArraySubscriptsContext = exports.TypeRefContext = exports.ArrayInitializerContext = exports.VariableDeclaratorContext = exports.VariableDeclaratorsContext = exports.InterfaceMethodDeclarationContext = exports.PropertyDeclarationContext = exports.FieldDeclarationContext = exports.ConstructorDeclarationContext = exports.MethodDeclarationContext = exports.MemberDeclarationContext = exports.ModifierContext = exports.ClassBodyDeclarationContext = exports.InterfaceBodyContext = exports.ClassBodyContext = exports.TypeListContext = exports.InterfaceDeclarationContext = exports.EnumConstantsContext = exports.EnumDeclarationContext = exports.ClassDeclarationContext = exports.TypeDeclarationContext = exports.CompilationUnitContext = exports.TriggerCaseContext = exports.TriggerUnitContext = exports.ApexParser = void 0; exports.PrimaryContext = exports.InstanceOfExpressionContext = exports.SubExpressionContext = exports.PreOpExpressionContext = exports.NegExpressionContext = exports.PostOpExpressionContext = exports.EqualityExpressionContext = exports.CondExpressionContext = exports.LogOrExpressionContext = exports.BitExpressionContext = exports.CmpExpressionContext = exports.BitAndExpressionContext = exports.CastExpressionContext = exports.CoalescingExpressionContext = exports.LogAndExpressionContext = exports.Arth2ExpressionContext = exports.BitNotExpressionContext = exports.MethodCallExpressionContext = exports.AssignExpressionContext = exports.NewExpressionContext = exports.ArrayExpressionContext = exports.BitOrExpressionContext = exports.DotExpressionContext = exports.Arth1ExpressionContext = exports.PrimaryExpressionContext = exports.ExpressionContext = exports.ExpressionListContext = exports.ParExpressionContext = exports.ForUpdateContext = exports.EnhancedForControlContext = exports.ForInitContext = exports.ForControlContext = exports.FinallyBlockContext = exports.CatchClauseContext = exports.SetterContext = exports.GetterContext = exports.PropertyBlockContext = exports.ExpressionStatementContext = exports.RunAsStatementContext = exports.MergeStatementContext = exports.UpsertStatementContext = exports.UndeleteStatementContext = exports.DeleteStatementContext = exports.UpdateStatementContext = exports.InsertStatementContext = exports.AccessLevelContext = exports.ContinueStatementContext = exports.BreakStatementContext = exports.ThrowStatementContext = exports.ReturnStatementContext = void 0; exports.DataCategorySelectionContext = exports.FilteringExpressionContext = exports.WithClauseContext = exports.SignedNumberContext = exports.ValueListContext = exports.ValueContext = exports.ComparisonOperatorContext = exports.FieldExpressionContext = exports.ConditionalExpressionContext = exports.LogicalExpressionContext = exports.WhereClauseContext = exports.UsingScopeContext = exports.FieldNameListContext = exports.ElseClauseContext = exports.WhenClauseContext = exports.TypeOfContext = exports.CoordinateValueContext = exports.LocationValueContext = exports.DateFieldNameContext = exports.SoqlFunctionContext = exports.SoqlFieldsParameterContext = exports.SubFieldEntryContext = exports.SubFieldListContext = exports.FromNameListContext = exports.FieldNameContext = exports.SelectEntryContext = exports.SelectListContext = exports.SubQueryContext = exports.QueryContext = exports.SoqlLiteralContext = exports.ArgumentsContext = exports.SetCreatorRestContext = exports.MapCreatorRestPairContext = exports.MapCreatorRestContext = exports.ArrayCreatorRestContext = exports.ClassCreatorRestContext = exports.NoRestContext = exports.IdCreatedNamePairContext = exports.CreatedNameContext = exports.CreatorContext = exports.DotMethodCallContext = exports.MethodCallContext = exports.LiteralPrimaryContext = exports.SoslPrimaryContext = exports.IdPrimaryContext = exports.TypeRefPrimaryContext = exports.SuperPrimaryContext = exports.SoqlPrimaryContext = exports.VoidPrimaryContext = exports.ThisPrimaryContext = void 0; exports.AnyIdContext = exports.IdContext = exports.SoslIdContext = exports.NetworkListContext = exports.UpdateTypeContext = exports.UpdateListContext = exports.FieldListContext = exports.FieldSpecContext = exports.FieldSpecListContext = exports.SearchGroupContext = exports.SoslClausesContext = exports.SoslLiteralAltContext = exports.SoslLiteralContext = exports.SoqlIdContext = exports.SignedIntegerContext = exports.DateFormulaContext = exports.BoundExpressionContext = exports.ForClausesContext = exports.AllRowsClauseContext = exports.OffsetClauseContext = exports.LimitClauseContext = exports.FieldOrderContext = exports.FieldOrderListContext = exports.OrderByClauseContext = exports.GroupByClauseContext = exports.FilteringSelectorContext = exports.DataCategoryNameContext = void 0; const antlr = __importStar(require("antlr4ng")); class ApexParser extends antlr.Parser { static { this.ABSTRACT = 1; } static { this.AFTER = 2; } static { this.BEFORE = 3; } static { this.BREAK = 4; } static { this.CATCH = 5; } static { this.CLASS = 6; } static { this.CONTINUE = 7; } static { this.DELETE = 8; } static { this.DO = 9; } static { this.ELSE = 10; } static { this.ENUM = 11; } static { this.EXTENDS = 12; } static { this.FINAL = 13; } static { this.FINALLY = 14; } static { this.FOR = 15; } static { this.GET = 16; } static { this.GLOBAL = 17; } static { this.IF = 18; } static { this.IMPLEMENTS = 19; } static { this.INHERITED = 20; } static { this.INSERT = 21; } static { this.INSTANCEOF = 22; } static { this.INTERFACE = 23; } static { this.MERGE = 24; } static { this.NEW = 25; } static { this.NULL = 26; } static { this.ON = 27; } static { this.OVERRIDE = 28; } static { this.PRIVATE = 29; } static { this.PROTECTED = 30; } static { this.PUBLIC = 31; } static { this.RETURN = 32; } static { this.SYSTEMRUNAS = 33; } static { this.SET = 34; } static { this.SHARING = 35; } static { this.STATIC = 36; } static { this.SUPER = 37; } static { this.SWITCH = 38; } static { this.TESTMETHOD = 39; } static { this.THIS = 40; } static { this.THROW = 41; } static { this.TRANSIENT = 42; } static { this.TRIGGER = 43; } static { this.TRY = 44; } static { this.UNDELETE = 45; } static { this.UPDATE = 46; } static { this.UPSERT = 47; } static { this.VIRTUAL = 48; } static { this.VOID = 49; } static { this.WEBSERVICE = 50; } static { this.WHEN = 51; } static { this.WHILE = 52; } static { this.WITH = 53; } static { this.WITHOUT = 54; } static { this.LIST = 55; } static { this.MAP = 56; } static { this.SYSTEM = 57; } static { this.USER = 58; } static { this.SELECT = 59; } static { this.COUNT = 60; } static { this.FROM = 61; } static { this.AS = 62; } static { this.USING = 63; } static { this.SCOPE = 64; } static { this.WHERE = 65; } static { this.ORDER = 66; } static { this.BY = 67; } static { this.LIMIT = 68; } static { this.SOQLAND = 69; } static { this.SOQLOR = 70; } static { this.NOT = 71; } static { this.AVG = 72; } static { this.COUNT_DISTINCT = 73; } static { this.MIN = 74; } static { this.MAX = 75; } static { this.SUM = 76; } static { this.TYPEOF = 77; } static { this.END = 78; } static { this.THEN = 79; } static { this.LIKE = 80; } static { this.IN = 81; } static { this.INCLUDES = 82; } static { this.EXCLUDES = 83; } static { this.ASC = 84; } static { this.DESC = 85; } static { this.NULLS = 86; } static { this.FIRST = 87; } static { this.LAST = 88; } static { this.GROUP = 89; } static { this.ALL = 90; } static { this.ROWS = 91; } static { this.VIEW = 92; } static { this.HAVING = 93; } static { this.ROLLUP = 94; } static { this.TOLABEL = 95; } static { this.OFFSET = 96; } static { this.DATA = 97; } static { this.CATEGORY = 98; } static { this.AT = 99; } static { this.ABOVE = 100; } static { this.BELOW = 101; } static { this.ABOVE_OR_BELOW = 102; } static { this.SECURITY_ENFORCED = 103; } static { this.SYSTEM_MODE = 104; } static { this.USER_MODE = 105; } static { this.REFERENCE = 106; } static { this.CUBE = 107; } static { this.FORMAT = 108; } static { this.TRACKING = 109; } static { this.VIEWSTAT = 110; } static { this.CUSTOM = 111; } static { this.STANDARD = 112; } static { this.DISTANCE = 113; } static { this.GEOLOCATION = 114; } static { this.CALENDAR_MONTH = 115; } static { this.CALENDAR_QUARTER = 116; } static { this.CALENDAR_YEAR = 117; } static { this.DAY_IN_MONTH = 118; } static { this.DAY_IN_WEEK = 119; } static { this.DAY_IN_YEAR = 120; } static { this.DAY_ONLY = 121; } static { this.FISCAL_MONTH = 122; } static { this.FISCAL_QUARTER = 123; } static { this.FISCAL_YEAR = 124; } static { this.HOUR_IN_DAY = 125; } static { this.WEEK_IN_MONTH = 126; } static { this.WEEK_IN_YEAR = 127; } static { this.CONVERT_TIMEZONE = 128; } static { this.YESTERDAY = 129; } static { this.TODAY = 130; } static { this.TOMORROW = 131; } static { this.LAST_WEEK = 132; } static { this.THIS_WEEK = 133; } static { this.NEXT_WEEK = 134; } static { this.LAST_MONTH = 135; } static { this.THIS_MONTH = 136; } static { this.NEXT_MONTH = 137; } static { this.LAST_90_DAYS = 138; } static { this.NEXT_90_DAYS = 139; } static { this.LAST_N_DAYS_N = 140; } static { this.NEXT_N_DAYS_N = 141; } static { this.N_DAYS_AGO_N = 142; } static { this.NEXT_N_WEEKS_N = 143; } static { this.LAST_N_WEEKS_N = 144; } static { this.N_WEEKS_AGO_N = 145; } static { this.NEXT_N_MONTHS_N = 146; } static { this.LAST_N_MONTHS_N = 147; } static { this.N_MONTHS_AGO_N = 148; } static { this.THIS_QUARTER = 149; } static { this.LAST_QUARTER = 150; } static { this.NEXT_QUARTER = 151; } static { this.NEXT_N_QUARTERS_N = 152; } static { this.LAST_N_QUARTERS_N = 153; } static { this.N_QUARTERS_AGO_N = 154; } static { this.THIS_YEAR = 155; } static { this.LAST_YEAR = 156; } static { this.NEXT_YEAR = 157; } static { this.NEXT_N_YEARS_N = 158; } static { this.LAST_N_YEARS_N = 159; } static { this.N_YEARS_AGO_N = 160; } static { this.THIS_FISCAL_QUARTER = 161; } static { this.LAST_FISCAL_QUARTER = 162; } static { this.NEXT_FISCAL_QUARTER = 163; } static { this.NEXT_N_FISCAL_QUARTERS_N = 164; } static { this.LAST_N_FISCAL_QUARTERS_N = 165; } static { this.N_FISCAL_QUARTERS_AGO_N = 166; } static { this.THIS_FISCAL_YEAR = 167; } static { this.LAST_FISCAL_YEAR = 168; } static { this.NEXT_FISCAL_YEAR = 169; } static { this.NEXT_N_FISCAL_YEARS_N = 170; } static { this.LAST_N_FISCAL_YEARS_N = 171; } static { this.N_FISCAL_YEARS_AGO_N = 172; } static { this.DateLiteral = 173; } static { this.DateTimeLiteral = 174; } static { this.IntegralCurrencyLiteral = 175; } static { this.FIND = 176; } static { this.EMAIL = 177; } static { this.NAME = 178; } static { this.PHONE = 179; } static { this.SIDEBAR = 180; } static { this.FIELDS = 181; } static { this.METADATA = 182; } static { this.PRICEBOOKID = 183; } static { this.NETWORK = 184; } static { this.SNIPPET = 185; } static { this.TARGET_LENGTH = 186; } static { this.DIVISION = 187; } static { this.RETURNING = 188; } static { this.LISTVIEW = 189; } static { this.FindLiteral = 190; } static { this.FindLiteralAlt = 191; } static { this.IntegerLiteral = 192; } static { this.LongLiteral = 193; } static { this.NumberLiteral = 194; } static { this.BooleanLiteral = 195; } static { this.StringLiteral = 196; } static { this.NullLiteral = 197; } static { this.LPAREN = 198; } static { this.RPAREN = 199; } static { this.LBRACE = 200; } static { this.RBRACE = 201; } static { this.LBRACK = 202; } static { this.RBRACK = 203; } static { this.SEMI = 204; } static { this.COMMA = 205; } static { this.DOT = 206; } static { this.ASSIGN = 207; } static { this.GT = 208; } static { this.LT = 209; } static { this.BANG = 210; } static { this.TILDE = 211; } static { this.QUESTIONDOT = 212; } static { this.QUESTION = 213; } static { this.DOUBLEQUESTION = 214; } static { this.COLON = 215; } static { this.EQUAL = 216; } static { this.TRIPLEEQUAL = 217; } static { this.NOTEQUAL = 218; } static { this.LESSANDGREATER = 219; } static { this.TRIPLENOTEQUAL = 220; } static { this.AND = 221; } static { this.OR = 222; } static { this.INC = 223; } static { this.DEC = 224; } static { this.ADD = 225; } static { this.SUB = 226; } static { this.MUL = 227; } static { this.DIV = 228; } static { this.BITAND = 229; } static { this.BITOR = 230; } static { this.CARET = 231; } static { this.MAPTO = 232; } static { this.ADD_ASSIGN = 233; } static { this.SUB_ASSIGN = 234; } static { this.MUL_ASSIGN = 235; } static { this.DIV_ASSIGN = 236; } static { this.AND_ASSIGN = 237; } static { this.OR_ASSIGN = 238; } static { this.XOR_ASSIGN = 239; } static { this.LSHIFT_ASSIGN = 240; } static { this.RSHIFT_ASSIGN = 241; } static { this.URSHIFT_ASSIGN = 242; } static { this.ATSIGN = 243; } static { this.Identifier = 244; } static { this.WS = 245; } static { this.DOC_COMMENT = 246; } static { this.COMMENT = 247; } static { this.LINE_COMMENT = 248; } static { this.RULE_triggerUnit = 0; } static { this.RULE_triggerCase = 1; } static { this.RULE_compilationUnit = 2; } static { this.RULE_typeDeclaration = 3; } static { this.RULE_classDeclaration = 4; } static { this.RULE_enumDeclaration = 5; } static { this.RULE_enumConstants = 6; } static { this.RULE_interfaceDeclaration = 7; } static { this.RULE_typeList = 8; } static { this.RULE_classBody = 9; } static { this.RULE_interfaceBody = 10; } static { this.RULE_classBodyDeclaration = 11; } static { this.RULE_modifier = 12; } static { this.RULE_memberDeclaration = 13; } static { this.RULE_methodDeclaration = 14; } static { this.RULE_constructorDeclaration = 15; } static { this.RULE_fieldDeclaration = 16; } static { this.RULE_propertyDeclaration = 17; } static { this.RULE_interfaceMethodDeclaration = 18; } static { this.RULE_variableDeclarators = 19; } static { this.RULE_variableDeclarator = 20; } static { this.RULE_arrayInitializer = 21; } static { this.RULE_typeRef = 22; } static { this.RULE_arraySubscripts = 23; } static { this.RULE_typeName = 24; } static { this.RULE_typeArguments = 25; } static { this.RULE_formalParameters = 26; } static { this.RULE_formalParameterList = 27; } static { this.RULE_formalParameter = 28; } static { this.RULE_qualifiedName = 29; } static { this.RULE_literal = 30; } static { this.RULE_annotation = 31; } static { this.RULE_elementValuePairs = 32; } static { this.RULE_elementValuePair = 33; } static { this.RULE_elementValue = 34; } static { this.RULE_elementValueArrayInitializer = 35; } static { this.RULE_block = 36; } static { this.RULE_localVariableDeclarationStatement = 37; } static { this.RULE_localVariableDeclaration = 38; } static { this.RULE_statement = 39; } static { this.RULE_ifStatement = 40; } static { this.RULE_switchStatement = 41; } static { this.RULE_whenControl = 42; } static { this.RULE_whenValue = 43; } static { this.RULE_whenLiteral = 44; } static { this.RULE_forStatement = 45; } static { this.RULE_whileStatement = 46; } static { this.RULE_doWhileStatement = 47; } static { this.RULE_tryStatement = 48; } static { this.RULE_returnStatement = 49; } static { this.RULE_throwStatement = 50; } static { this.RULE_breakStatement = 51; } static { this.RULE_continueStatement = 52; } static { this.RULE_accessLevel = 53; } static { this.RULE_insertStatement = 54; } static { this.RULE_updateStatement = 55; } static { this.RULE_deleteStatement = 56; } static { this.RULE_undeleteStatement = 57; } static { this.RULE_upsertStatement = 58; } static { this.RULE_mergeStatement = 59; } static { this.RULE_runAsStatement = 60; } static { this.RULE_expressionStatement = 61; } static { this.RULE_propertyBlock = 62; } static { this.RULE_getter = 63; } static { this.RULE_setter = 64; } static { this.RULE_catchClause = 65; } static { this.RULE_finallyBlock = 66; } static { this.RULE_forControl = 67; } static { this.RULE_forInit = 68; } static { this.RULE_enhancedForControl = 69; } static { this.RULE_forUpdate = 70; } static { this.RULE_parExpression = 71; } static { this.RULE_expressionList = 72; } static { this.RULE_expression = 73; } static { this.RULE_primary = 74; } static { this.RULE_methodCall = 75; } static { this.RULE_dotMethodCall = 76; } static { this.RULE_creator = 77; } static { this.RULE_createdName = 78; } static { this.RULE_idCreatedNamePair = 79; } static { this.RULE_noRest = 80; } static { this.RULE_classCreatorRest = 81; } static { this.RULE_arrayCreatorRest = 82; } static { this.RULE_mapCreatorRest = 83; } static { this.RULE_mapCreatorRestPair = 84; } static { this.RULE_setCreatorRest = 85; } static { this.RULE_arguments = 86; } static { this.RULE_soqlLiteral = 87; } static { this.RULE_query = 88; } static { this.RULE_subQuery = 89; } static { this.RULE_selectList = 90; } static { this.RULE_selectEntry = 91; } static { this.RULE_fieldName = 92; } static { this.RULE_fromNameList = 93; } static { this.RULE_subFieldList = 94; } static { this.RULE_subFieldEntry = 95; } static { this.RULE_soqlFieldsParameter = 96; } static { this.RULE_soqlFunction = 97; } static { this.RULE_dateFieldName = 98; } static { this.RULE_locationValue = 99; } static { this.RULE_coordinateValue = 100; } static { this.RULE_typeOf = 101; } static { this.RULE_whenClause = 102; } static { this.RULE_elseClause = 103; } static { this.RULE_fieldNameList = 104; } static { this.RULE_usingScope = 105; } static { this.RULE_whereClause = 106; } static { this.RULE_logicalExpression = 107; } static { this.RULE_conditionalExpression = 108; } static { this.RULE_fieldExpression = 109; } static { this.RULE_comparisonOperator = 110; } static { this.RULE_value = 111; } static { this.RULE_valueList = 112; } static { this.RULE_signedNumber = 113; } static { this.RULE_withClause = 114; } static { this.RULE_filteringExpression = 115; } static { this.RULE_dataCategorySelection = 116; } static { this.RULE_dataCategoryName = 117; } static { this.RULE_filteringSelector = 118; } static { this.RULE_groupByClause = 119; } static { this.RULE_orderByClause = 120; } static { this.RULE_fieldOrderList = 121; } static { this.RULE_fieldOrder = 122; } static { this.RULE_limitClause = 123; } static { this.RULE_offsetClause = 124; } static { this.RULE_allRowsClause = 125; } static { this.RULE_forClauses = 126; } static { this.RULE_boundExpression = 127; } static { this.RULE_dateFormula = 128; } static { this.RULE_signedInteger = 129; } static { this.RULE_soqlId = 130; } static { this.RULE_soslLiteral = 131; } static { this.RULE_soslLiteralAlt = 132; } static { this.RULE_soslClauses = 133; } static { this.RULE_searchGroup = 134; } static { this.RULE_fieldSpecList = 135; } static { this.RULE_fieldSpec = 136; } static { this.RULE_fieldList = 137; } static { this.RULE_updateList = 138; } static { this.RULE_updateType = 139; } static { this.RULE_networkList = 140; } static { this.RULE_soslId = 141; } static { this.RULE_id = 142; } static { this.RULE_anyId = 143; } static { this.literalNames = [ null, "'abstract'", "'after'", "'before'", "'break'", "'catch'", "'class'", "'continue'", "'delete'", "'do'", "'else'", "'enum'", "'extends'", "'final'", "'finally'", "'for'", "'get'", "'global'", "'if'", "'implements'", "'inherited'", "'insert'", "'instanceof'", "'interface'", "'merge'", "'new'", "'null'", "'on'", "'override'", "'private'", "'protected'", "'public'", "'return'", "'system.runas'", "'set'", "'sharing'", "'static'", "'super'", "'switch'", "'testmethod'", "'this'", "'throw'", "'transient'", "'trigger'", "'try'", "'undelete'", "'update'", "'upsert'", "'virtual'", "'void'", "'webservice'", "'when'", "'while'", "'with'", "'without'", "'list'", "'map'", "'system'", "'user'", "'select'", "'count'", "'from'", "'as'", "'using'", "'scope'", "'where'", "'order'", "'by'", "'limit'", "'and'", "'or'", "'not'", "'avg'", "'count_distinct'", "'min'", "'max'", "'sum'", "'typeof'", "'end'", "'then'", "'like'", "'in'", "'includes'", "'excludes'", "'asc'", "'desc'", "'nulls'", "'first'", "'last'", "'group'", "'all'", "'rows'", "'view'", "'having'", "'rollup'", "'tolabel'", "'offset'", "'data'", "'category'", "'at'", "'above'", "'below'", "'above_or_below'", "'security_enforced'", "'system_mode'", "'user_mode'", "'reference'", "'cube'", "'format'", "'tracking'", "'viewstat'", "'custom'", "'standard'", "'distance'", "'geolocation'", "'calendar_month'", "'calendar_quarter'", "'calendar_year'", "'day_in_month'", "'day_in_week'", "'day_in_year'", "'day_only'", "'fiscal_month'", "'fiscal_quarter'", "'fiscal_year'", "'hour_in_day'", "'week_in_month'", "'week_in_year'", "'converttimezone'", "'yesterday'", "'today'", "'tomorrow'", "'last_week'", "'this_week'", "'next_week'", "'last_month'", "'this_month'", "'next_month'", "'last_90_days'", "'next_90_days'", "'last_n_days'", "'next_n_days'", "'n_days_ago'", "'next_n_weeks'", "'last_n_weeks'", "'n_weeks_ago'", "'next_n_months'", "'last_n_months'", "'n_months_ago'", "'this_quarter'", "'last_quarter'", "'next_quarter'", "'next_n_quarters'", "'last_n_quarters'", "'n_quarters_ago'", "'this_year'", "'last_year'", "'next_year'", "'next_n_years'", "'last_n_years'", "'n_years_ago'", "'this_fiscal_quarter'", "'last_fiscal_quarter'", "'next_fiscal_quarter'", "'next_n_fiscal_quarters'", "'last_n_fiscal_quarters'", "'n_fiscal_quarters_ago'", "'this_fiscal_year'", "'last_fiscal_year'", "'next_fiscal_year'", "'next_n_fiscal_years'", "'last_n_fiscal_years'", "'n_fiscal_years_ago'", null, null, null, "'find'", "'email'", "'name'", "'phone'", "'sidebar'", "'fields'", "'metadata'", "'pricebookid'", "'network'", "'snippet'", "'target_length'", "'division'", "'returning'", "'listview'", null, null, null, null, null, null, null, null, "'('", "')'", "'{'", "'}'", "'['", "']'", "';'", "','", "'.'", "'='", "'>'", "'<'", "'!'", "'~'", "'?.'", "'?'", "'??'", "':'", "'=='", "'==='", "'!='", "'<>'", "'!=='", "'&&'", "'||'", "'++'", "'--'", "'+'", "'-'", "'*'", "'/'", "'&'", "'|'", "'^'", "'=>'", "'+='", "'-='", "'*='", "'/='", "'&='", "'|='", "'^='", "'<<='", "'>>='", "'>>>='", "'@'" ]; } static { this.symbolicNames = [ null, "ABSTRACT", "AFTER", "BEFORE", "BREAK", "CATCH", "CLASS", "CONTINUE", "DELETE", "DO", "ELSE", "ENUM", "EXTENDS", "FINAL", "FINALLY", "FOR", "GET", "GLOBAL", "IF", "IMPLEMENTS", "INHERITED", "INSERT", "INSTANCEOF", "INTERFACE", "MERGE", "NEW", "NULL", "ON", "OVERRIDE", "PRIVATE", "PROTECTED", "PUBLIC", "RETURN", "SYSTEMRUNAS", "SET", "SHARING", "STATIC", "SUPER", "SWITCH", "TESTMETHOD", "THIS", "THROW", "TRANSIENT", "TRIGGER", "TRY", "UNDELETE", "UPDATE", "UPSERT", "VIRTUAL", "VOID", "WEBSERVICE", "WHEN", "WHILE", "WITH", "WITHOUT", "LIST", "MAP", "SYSTEM", "USER", "SELECT", "COUNT", "FROM", "AS", "USING", "SCOPE", "WHERE", "ORDER", "BY", "LIMIT", "SOQLAND", "SOQLOR", "NOT", "AVG", "COUNT_DISTINCT", "MIN", "MAX", "SUM", "TYPEOF", "END", "THEN", "LIKE", "IN", "INCLUDES", "EXCLUDES", "ASC", "DESC", "NULLS", "FIRST", "LAST", "GROUP", "ALL", "ROWS", "VIEW", "HAVING", "ROLLUP", "TOLABEL", "OFFSET", "DATA", "CATEGORY", "AT", "ABOVE", "BELOW", "ABOVE_OR_BELOW", "SECURITY_ENFORCED", "SYSTEM_MODE", "USER_MODE", "REFERENCE", "CUBE", "FORMAT", "TRACKING", "VIEWSTAT", "CUSTOM", "STANDARD", "DISTANCE", "GEOLOCATION", "CALENDAR_MONTH", "CALENDAR_QUARTER", "CALENDAR_YEAR", "DAY_IN_MONTH", "DAY_IN_WEEK", "DAY_IN_YEAR", "DAY_ONLY", "FISCAL_MONTH", "FISCAL_QUARTER", "FISCAL_YEAR", "HOUR_IN_DAY", "WEEK_IN_MONTH", "WEEK_IN_YEAR", "CONVERT_TIMEZONE", "YESTERDAY", "TODAY", "TOMORROW", "LAST_WEEK", "THIS_WEEK", "NEXT_WEEK", "LAST_MONTH", "THIS_MONTH", "NEXT_MONTH", "LAST_90_DAYS", "NEXT_90_DAYS", "LAST_N_DAYS_N", "NEXT_N_DAYS_N", "N_DAYS_AGO_N", "NEXT_N_WEEKS_N", "LAST_N_WEEKS_N", "N_WEEKS_AGO_N", "NEXT_N_MONTHS_N", "LAST_N_MONTHS_N", "N_MONTHS_AGO_N", "THIS_QUARTER", "LAST_QUARTER", "NEXT_QUARTER", "NEXT_N_QUARTERS_N", "LAST_N_QUARTERS_N", "N_QUARTERS_AGO_N", "THIS_YEAR", "LAST_YEAR", "NEXT_YEAR", "NEXT_N_YEARS_N", "LAST_N_YEARS_N", "N_YEARS_AGO_N", "THIS_FISCAL_QUARTER", "LAST_FISCAL_QUARTER", "NEXT_FISCAL_QUARTER", "NEXT_N_FISCAL_QUARTERS_N", "LAST_N_FISCAL_QUARTERS_N", "N_FISCAL_QUARTERS_AGO_N", "THIS_FISCAL_YEAR", "LAST_FISCAL_YEAR", "NEXT_FISCAL_YEAR", "NEXT_N_FISCAL_YEARS_N", "LAST_N_FISCAL_YEARS_N", "N_FISCAL_YEARS_AGO_N", "DateLiteral", "DateTimeLiteral", "IntegralCurrencyLiteral", "FIND", "EMAIL", "NAME", "PHONE", "SIDEBAR", "FIELDS", "METADATA", "PRICEBOOKID", "NETWORK", "SNIPPET", "TARGET_LENGTH", "DIVISION", "RETURNING", "LISTVIEW", "FindLiteral", "FindLiteralAlt", "IntegerLiteral", "LongLiteral", "NumberLiteral", "BooleanLiteral", "StringLiteral", "NullLiteral", "LPAREN", "RPAREN", "LBRACE", "RBRACE", "LBRACK", "RBRACK", "SEMI", "COMMA", "DOT", "ASSIGN", "GT", "LT", "BANG", "TILDE", "QUESTIONDOT", "QUESTION", "DOUBLEQUESTION", "COLON", "EQUAL", "TRIPLEEQUAL", "NOTEQUAL", "LESSANDGREATER", "TRIPLENOTEQUAL", "AND", "OR", "INC", "DEC", "ADD", "SUB", "MUL", "DIV", "BITAND", "BITOR", "CARET", "MAPTO", "ADD_ASSIGN", "SUB_ASSIGN", "MUL_ASSIGN", "DIV_ASSIGN", "AND_ASSIGN", "OR_ASSIGN", "XOR_ASSIGN", "LSHIFT_ASSIGN", "RSHIFT_ASSIGN", "URSHIFT_ASSIGN", "ATSIGN", "Identifier", "WS", "DOC_COMMENT", "COMMENT", "LINE_COMMENT" ]; } static { this.ruleNames = [ "triggerUnit", "triggerCase", "compilationUnit", "typeDeclaration", "classDeclaration", "enumDeclaration", "enumConstants", "interfaceDeclaration", "typeList", "classBody", "interfaceBody", "classBodyDeclaration", "modifier", "memberDeclaration", "methodDeclaration", "constructorDeclaration", "fieldDeclaration", "propertyDeclaration", "interfaceMethodDeclaration", "variableDeclarators", "variableDeclarator", "arrayInitializer", "typeRef", "arraySubscripts", "typeName", "typeArguments", "formalParameters", "formalParameterList", "formalParameter", "qualifiedName", "literal", "annotation", "elementValuePairs", "elementValuePair", "elementValue", "elementValueArrayInitializer", "block", "localVariableDeclarationStatement", "localVariableDeclaration", "statement", "ifStatement", "switchStatement", "whenControl", "whenValue", "whenLiteral", "forStatement", "whileStatement", "doWhileStatement", "tryStatement", "returnStatement", "throwStatement", "breakStatement", "continueStatement", "accessLevel", "insertStatement", "updateStatement", "deleteStatement", "undeleteStatement", "upsertStatement", "mergeStatement", "runAsStatement", "expressionStatement", "propertyBlock", "getter", "setter", "catchClause", "finallyBlock", "forControl", "forInit", "enhancedForControl", "forUpdate", "parExpression", "expressionList", "expression", "primary", "methodCall", "dotMethodCall", "creator", "createdName", "idCreatedNamePair", "noRest", "classCreatorRest", "arrayCreatorRest", "mapCreatorRest", "mapCreatorRestPair", "setCreatorRest", "arguments", "soqlLiteral", "query", "subQuery", "selectList", "selectEntry", "fieldName", "fromNameList", "subFieldList", "subFieldEntry", "soqlFieldsParameter", "soqlFunction", "dateFieldName", "locationValue", "coordinateValue", "typeOf", "whenClause", "elseClause", "fieldNameList", "usingScope", "whereClause", "logicalExpression", "conditionalExpression", "fieldExpression", "comparisonOperator", "value", "valueList", "signedNumber", "withClause", "filteringExpression", "dataCategorySelection", "dataCategoryName", "filteringSelector", "groupByClause", "orderByClause", "fieldOrderList", "fieldOrder", "limitClause", "offsetClause", "allRowsClause", "forClauses", "boundExpression", "dateFormula", "signedInteger", "soqlId", "soslLiteral", "soslLiteralAlt", "soslClauses", "searchGroup", "fieldSpecList", "fieldSpec", "fieldList", "updateList", "updateType", "networkList", "soslId", "id", "anyId", ]; } get grammarFileName() { return "ApexParser.g4"; } get literalNames() { return ApexParser.literalNames; } get symbolicNames() { return ApexParser.symbolicNames; } get ruleNames() { return ApexParser.ruleNames; } get serializedATN() { return ApexParser._serializedATN; } createFailedPredicateException(predicate, message) { return new antlr.FailedPredicateException(this, predicate, message); } constructor(input) { super(input); this.interpreter = new antlr.ParserATNSimulator(this, ApexParser._ATN, ApexParser.decisionsToDFA, new antlr.PredictionContextCache()); } triggerUnit() { const localContext = new TriggerUnitContext(this.context, this.state); this.enterRule(localContext, 0, ApexParser.RULE_triggerUnit); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 288; this.match(ApexParser.TRIGGER); this.state = 289; this.id(); this.state = 290; this.match(ApexParser.ON); this.state = 291; localContext._object = this.id(); this.state = 292; this.match(ApexParser.LPAREN); this.state = 293; this.triggerCase(); this.state = 298; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 205) { { { this.state = 294; this.match(ApexParser.COMMA); this.state = 295; this.triggerCase(); } } this.state = 300; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 301; this.match(ApexParser.RPAREN); this.state = 302; this.block(); this.state = 303; this.match(ApexParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } triggerCase() { const localContext = new TriggerCaseContext(this.context, this.state); this.enterRule(localContext, 2, ApexParser.RULE_triggerCase); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 305; localContext._when = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if (!(_la === 2 || _la === 3)) { localContext._when = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 306; localContext._operation = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if (!(_la === 8 || _la === 21 || _la === 45 || _la === 46)) { localContext._operation = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } compilationUnit() { const localContext = new CompilationUnitContext(this.context, this.state); this.enterRule(localContext, 4, ApexParser.RULE_compilationUnit); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 311; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4036110402) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 413769) !== 0) || _la === 243) { { { this.state = 308; this.typeDeclaration(); } } this.state = 313; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 314; this.match(ApexParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } typeDeclaration() { const localContext = new TypeDeclarationContext(this.context, this.state); this.enterRule(localContext, 6, ApexParser.RULE_typeDeclaration); let _la; try { this.state = 337; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context)) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 319; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4027719682) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 413769) !== 0) || _la === 243) { { { this.state = 316; this.modifier(); } } this.state = 321; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 322; this.classDeclaration(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 326; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4027719682) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 413769) !== 0) || _la === 243) { { { this.state = 323; this.modifier(); } } this.state = 328; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 329; this.enumDeclaration(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 333; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4027719682) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 413769) !== 0) || _la === 243) { { { this.state = 330; this.modifier(); } } this.state = 335; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 336; this.interfaceDeclaration(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } classDeclaration() { const localContext = new ClassDeclarationContext(this.context, this.state); this.enterRule(localContext, 8, ApexParser.RULE_classDeclaration); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 339; this.match(ApexParser.CLASS); this.state = 340; this.id(); this.state = 343; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 12) { { this.state = 341; this.match(ApexParser.EXTENDS); this.state = 342; this.typeRef(); } } this.state = 347; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 19) { { this.state = 345; this.match(ApexParser.IMPLEMENTS); this.state = 346; this.typeList(); } } this.state = 349; this.classBody(); } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } enumDeclaration() { const localContext = new EnumDeclarationContext(this.context, this.state); this.enterRule(localContext, 10, ApexParser.RULE_enumDeclaration); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 351; this.match(ApexParser.ENUM); this.state = 352; this.id(); this.state = 353; this.match(ApexParser.LBRACE); this.state = 355; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 5308428) !== 0) || ((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 4288283411) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 4294967295) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 4294967295) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 4294967295) !== 0) || ((((_la - 162)) & ~0x1F) === 0 && ((1 << (_la - 162)) & 268429311) !== 0) || _la === 244) { { this.state = 354; this.enumConstants(); } } this.state = 357; this.match(ApexParser.RBRACE); } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } enumConstants() { const localContext = new EnumConstantsContext(this.context, this.state); this.enterRule(localContext, 12, ApexParser.RULE_enumConstants); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 359; this.id(); this.state = 364; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 205) { { { this.state = 360; this.match(ApexParser.COMMA); this.state = 361; this.id(); } } this.state = 366; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } interfaceDeclaration() { const localContext = new InterfaceDeclarationContext(this.context, this.state); this.enterRule(localContext, 14, ApexParser.RULE_interfaceDeclaration); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 367; this.match(ApexParser.INTERFACE); this.state = 368; this.id(); this.state = 371; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 12) { { this.state = 369; this.match(ApexParser.EXTENDS); this.state = 370; this.typeList(); } } this.state = 373; this.interfaceBody(); } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } typeList() { const localContext = new TypeListContext(this.context, this.state); this.enterRule(localContext, 16, ApexParser.RULE_typeList); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 375; this.typeRef(); this.state = 380; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 205) { { { this.state = 376; this.match(ApexParser.COMMA); this.state = 377; this.typeRef(); } } this.state = 382; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } classBody() { const localContext = new ClassBodyContext(this.context, this.state); this.enterRule(localContext, 18, ApexParser.RULE_classBody); let _la; try { this.enterOuterAlt(localContext, 1); { this.state = 383; this.match(ApexParser.LBRACE); this.state = 387; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4040370254) !== 0) || ((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 4294689591) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 4294967295) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 4294967295) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 4294967295) !== 0) || ((((_la - 162)) & ~0x1F) === 0 && ((1 << (_la - 162)) & 268429311) !== 0) || _la === 200 || _la === 204 || _la === 243 || _la === 244) { { { this.state = 384; this.classBodyDeclaration(); }