Package com.javacc.parser
Interface JavaCCConstants
- All Known Implementing Classes:
AdditiveExpression,AllocationExpression,AndExpression,AnnotationMethodDeclaration,AnnotationTypeBody,AnnotationTypeDeclaration,AnnotationTypeMemberDeclaration,ANY_CHAR,ArrayAccess,ArrayDimsAndInits,ArrayInitializer,Assertion,AssertStatement,AssignmentExpression,AttemptBlock,Backslash,BaseNode,BasicForStatement,BlockStatement,BNFProduction,BooleanLiteral,BreakStatement,CatchBlock,CharacterList,CharacterLiteral,CharacterRange,ClassDeclaration,ClassicCaseStatement,ClassicSwitchLabel,ClassicSwitchStatement,ClassicTryStatement,ClassLiteral,ClassOrInterfaceBody,CodeBlock,CodeInjection,CodeInjection2,Comment,CompactConstructorDeclaration,CompilationUnit,ConditionalAndExpression,ConditionalOrExpression,ConstructorDeclaration,ContinueStatement,DefaultValue,Delimiter,DiamondOperator,DoStatement,DotName,DotNew,DotSuper,DotThis,EmptyDeclaration,EmptyExpansion,EmptyStatement,EndOfFile,EnhancedForStatement,EnumBody,EnumConstant,EnumDeclaration,EqualityExpression,ExceptionType,ExclusiveOrExpression,Expansion,ExpansionChoice,ExpansionSequence,ExpansionUnit,ExpansionWithParentheses,ExplicitConstructorInvocation,ExpressionStatement,ExtendsList,Failure,FieldDeclaration,FinallyBlock,FloatingPointLiteral,ForInit,FormalParameter,FormalParameters,ForStatement,Grammar,GrammarFile,GrammarInclusion,HASH,Identifier,IfStatement,ImplementsList,ImportDeclaration,InclusiveOrExpression,Initializer,InstanceOfExpression,IntegerLiteral,InterfaceDeclaration,InvalidToken,InvocationArguments,JavaCCKeyWord,JavaCCLexer,JavaCCParser,KeyWord,Label,LambdaExpression,LambdaLHS,LambdaParameter,LambdaParameters,LegacyLookahead,LexicalStateSwitch,Literal,LiteralExpression,LocalVariableDeclaration,LongLiteral,Lookahead,LookBehind,MarkerAnnotation,MemberValue,MemberValueArrayInitializer,MemberValuePair,MemberValuePairs,MethodCall,MethodDeclaration,MethodReference,MULTI_LINE_COMMENT_START,MultiLineComment,MultiplicativeExpression,Name,NewCaseStatement,NewSwitchLabel,NewSwitchStatement,NonTerminal,NormalAnnotation,NullLiteral,NumericalLiteral,ObjectCastExpression,ObjectType,OneOrMore,OneOrMoreRegexp,Operator,Options,PackageDeclaration,Parentheses,ParseException,ParserCodeDecls,PermitsList,PostfixExpression,PreDecrementExpression,PreIncrementExpression,Primitive,PrimitiveArrayType,PrimitiveCastExpression,PrimitiveType,RecordBody,RecordComponent,RecordDeclaration,RecordHeader,ReferenceType,RegexpChoice,RegexpRef,RegexpSequence,RegexpSpec,RegexpStringLiteral,RegularExpression,RelationalExpression,RepetitionRange,ReturnStatement,ReturnType,RightArrow,scan,Setting,ShiftExpression,SINGLE_LINE_COMMENT_START,SingleLineComment,SingleMemberAnnotation,Statement,StatementExpression,StatementExpressionList,StringLiteral,SwitchExpression,SwitchStatement,SynchronizedStatement,TernaryExpression,ThisLiteral,ThrowsList,ThrowStatement,Token,TokenActivation,TokenManagerDecls,TokenProduction,TreeBuildingAnnotation,TryBlock,TryStatement,TryWithResources,TypeArgument,TypeArguments,TypeBound,TypeParameter,TypeParameters,UnaryExpression,UnaryExpressionNotPlusMinus,UncacheTokens,UP_TO_HERE,VariableDeclarator,VariableDeclaratorId,VariableInitializer,WhileStatement,Whitespace,WildcardBounds,YieldStatement,ZeroOrMore,ZeroOrMoreRegexp,ZeroOrOne,ZeroOrOneRegexp
public interface JavaCCConstants
Token literal values and constants.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumLexical Statesstatic enum -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StringaddEscapes(String str) static StringdisplayChar(int ch) static Stringstatic Stringstatic StringstringFromBytes(byte[] bytes) Rather bloody-minded way of converting a byte array into a string taking into account the initial byte order mark (used by Microsoft a lot seemingly) See: https://docs.microsoft.com/es-es/globalization/encoding/byte-order-markc
-
Field Details
-
BUF_SIZE
static final int BUF_SIZE- See Also:
-
-
Method Details
-
displayChar
-
addEscapes
-
readToEnd
-
readFully
- Throws:
IOException
-
stringFromBytes
Rather bloody-minded way of converting a byte array into a string taking into account the initial byte order mark (used by Microsoft a lot seemingly) See: https://docs.microsoft.com/es-es/globalization/encoding/byte-order-markc- Parameters:
bytes- the raw byte array- Returns:
- A String taking into account the encoding in the byte order mark (if it was present). If no byte-order mark was present, it assumes the raw input is in UTF-8.
-