- Package(Location, String) - Constructor for class org.codehaus.janino.Java.Package
-
- PACKAGE - Static variable in class org.codehaus.janino.Mod
-
The flag indicating 'default accessibility' a.k.a.
- PackageDeclaration(Location, String) - Constructor for class org.codehaus.janino.Java.PackageDeclaration
-
- PackageMemberAnnotationTypeDeclaration(Location, String, Java.Modifiers, String) - Constructor for class org.codehaus.janino.Java.PackageMemberAnnotationTypeDeclaration
-
- PackageMemberClassDeclaration(Location, String, Java.Modifiers, String, Java.TypeParameter[], Java.Type, Java.Type[]) - Constructor for class org.codehaus.janino.Java.PackageMemberClassDeclaration
-
- PackageMemberEnumDeclaration(Location, String, Java.Modifiers, String, Java.Type[]) - Constructor for class org.codehaus.janino.Java.PackageMemberEnumDeclaration
-
- PackageMemberInterfaceDeclaration(Location, String, Java.Modifiers, String, Java.TypeParameter[], Java.Type[]) - Constructor for class org.codehaus.janino.Java.PackageMemberInterfaceDeclaration
-
- packageMemberTypeDeclarations - Variable in class org.codehaus.janino.Java.CompilationUnit
-
The top-level declarations in this CU.
- packageName - Variable in class org.codehaus.janino.Java.PackageDeclaration
-
The package name, e.g.
- ParameterAccess(Location, Java.FunctionDeclarator.FormalParameter) - Constructor for class org.codehaus.janino.Java.ParameterAccess
-
- parameterFds - Variable in class org.codehaus.janino.MethodDescriptor
-
The field descriptors of the method parameters.
- parameters - Variable in class org.codehaus.janino.Java.FunctionDeclarator.FormalParameters
-
- ParenthesizedExpression(Location, Java.Rvalue) - Constructor for class org.codehaus.janino.Java.ParenthesizedExpression
-
- parseAdditiveExpression() - Method in class org.codehaus.janino.Parser
-
AdditiveExpression :=
MultiplicativeExpression { ( '+' | '-' ) MultiplicativeExpression }
- parseAndExpression() - Method in class org.codehaus.janino.Parser
-
AndExpression :=
EqualityExpression { '&' EqualityExpression }
- parseAnnotationTypeDeclarationRest(String, Java.Modifiers, Parser.InterfaceDeclarationContext) - Method in class org.codehaus.janino.Parser
-
AnnotationTypeDeclarationRest := Identifier AnnotationTypeBody
- parseArgumentList() - Method in class org.codehaus.janino.Parser
-
ArgumentList := Expression { ',' Expression }
- parseArguments() - Method in class org.codehaus.janino.Parser
-
Arguments := '(' [ ArgumentList ] ')'
- parseArrayInitializer() - Method in class org.codehaus.janino.Parser
-
ArrayInitializer :=
'{' [ VariableInitializer { ',' VariableInitializer } [ ',' ] '}'
- parseAssertStatement() - Method in class org.codehaus.janino.Parser
-
AssertStatement := 'assert' Expression [ ':' Expression ] ';'
- parseAssignmentExpression() - Method in class org.codehaus.janino.Parser
-
AssignmentExpression :=
ConditionalExpression [ AssignmentOperator AssignmentExpression ]
AssignmentOperator :=
'=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' |
'>>=' | '>>>=' | '&=' | '^=' | '|='
- parseBlock() - Method in class org.codehaus.janino.Parser
-
Block := '{' BlockStatements '}'
- parseBlockStatement() - Method in class org.codehaus.janino.Parser
-
BlockStatement :=
Statement | (1)
'class' ... | (2)
Modifiers Type VariableDeclarators ';' |
Expression ';' |
Expression BracketsOpt VariableDeclarators ';' (3)
(1) Includes the "labeled statement".
- parseBlockStatements() - Method in class org.codehaus.janino.Parser
-
BlockStatements := { BlockStatement }
- parseBreakStatement() - Method in class org.codehaus.janino.Parser
-
BreakStatement := 'break' [ Identifier ] ';'
- parseClassBody(Java.AbstractClassDeclaration) - Method in class org.codehaus.janino.Parser
-
ClassBody := '{' { ClassBodyDeclaration } '}'
- parseClassBodyDeclaration(Java.AbstractClassDeclaration) - Method in class org.codehaus.janino.Parser
-
ClassBodyDeclaration :=
';' |
ModifiersOpt (
Block | // Instance (JLS7 8.6) or static initializer (JLS7 8.7)
'void' Identifier MethodDeclarationRest |
'class' ClassDeclarationRest |
'interface' InterfaceDeclarationRest |
ConstructorDeclarator |
[ TypeArguments ] Type Identifier MethodDeclarationRest |
Type Identifier FieldDeclarationRest ';'
)
- parseClassDeclarationRest(String, Java.Modifiers, Parser.ClassDeclarationContext) - Method in class org.codehaus.janino.Parser
-
ClassDeclarationRest :=
Identifier [ typeParameters ]
[ 'extends' ReferenceType ]
[ 'implements' ReferenceTypeList ]
ClassBody
- parseCombinedPattern(String) - Static method in class org.codehaus.janino.util.StringPattern
-
- parseCompilationUnit() - Method in class org.codehaus.janino.Parser
-
CompilationUnit := [ PackageDeclaration ]
{ ImportDeclaration }
{ TypeDeclaration }
- parseConditionalAndExpression() - Method in class org.codehaus.janino.Parser
-
ConditionalAndExpression :=
InclusiveOrExpression { '&&' InclusiveOrExpression }
- parseConditionalExpression() - Method in class org.codehaus.janino.Parser
-
ConditionalExpression :=
ConditionalOrExpression [ '?'
- parseConditionalOrExpression() - Method in class org.codehaus.janino.Parser
-
ConditionalOrExpression :=
ConditionalAndExpression { '||' ConditionalAndExpression ]
- parseConstructorDeclarator(String, Java.Modifiers) - Method in class org.codehaus.janino.Parser
-
ConstructorDeclarator :=
Identifier
FormalParameters
[ 'throws' ReferenceTypeList ]
'{'
[ 'this' Arguments ';' | 'super' Arguments ';' | Primary '.'
- parseContinueStatement() - Method in class org.codehaus.janino.Parser
-
ContinueStatement := 'continue' [ Identifier ] ';'
- parseDimExpr() - Method in class org.codehaus.janino.Parser
-
DimExpr := '[' Expression ']'
- parseDimExprs() - Method in class org.codehaus.janino.Parser
-
DimExprs := DimExpr { DimExpr }
- parseDoStatement() - Method in class org.codehaus.janino.Parser
-
DoStatement := 'do' Statement 'while' '(' Expression ')' ';'
- parseEmptyStatement() - Method in class org.codehaus.janino.Parser
-
EmptyStatement := ';'
- parseEnumBody(Java.EnumDeclaration) - Method in class org.codehaus.janino.Parser
-
EnumBody := '{' [ EnumConstant { ',' EnumConstant } [ ',' ] [ ';' ] { ClassBodyDeclaration } '}'
- parseEnumConstant() - Method in class org.codehaus.janino.Parser
-
EnumConstant := [ Annotations ] Identifier [ Arguments ] [ ClassBody ]
- parseEnumDeclarationRest(String, Java.Modifiers, Parser.ClassDeclarationContext) - Method in class org.codehaus.janino.Parser
-
EnumDeclarationRest := Identifier [ 'implements' ReferenceTypeList ] EnumBody
- parseEqualityExpression() - Method in class org.codehaus.janino.Parser
-
EqualityExpression :=
RelationalExpression { ( '==' | '!
- parseExclusiveOrExpression() - Method in class org.codehaus.janino.Parser
-
ExclusiveOrExpression :=
AndExpression { '^' AndExpression }
- parseExpression() - Method in class org.codehaus.janino.Parser
-
Expression := AssignmentExpression
- parseExpressionList() - Method in class org.codehaus.janino.Parser
-
ExpressionList := Expression { ',' Expression }
- parseExpressionStatement() - Method in class org.codehaus.janino.Parser
-
ExpressionStatement := Expression ';'
- parseFieldDeclarationRest(String) - Method in class org.codehaus.janino.Parser
-
FieldDeclarationRest :=
VariableDeclaratorRest
{ ',' VariableDeclarator }
- parseFormalParameter(boolean[]) - Method in class org.codehaus.janino.Parser
-
FormalParameter := [ 'final' ] Type [ '.' '.' '.' ] Identifier BracketsOpt
- parseFormalParameters() - Method in class org.codehaus.janino.Parser
-
FormalParameters := '(' [ FormalParameter { ',' FormalParameter } ] ')'
- parseForStatement() - Method in class org.codehaus.janino.Parser
-
ForStatement :=
'for' '(' [ ForInit ] ';' [ Expression ] ';' [ ExpressionList ] ')' Statement
| 'for' '(' FormalParameter ':' Expression ')' Statement
ForInit :=
Modifiers Type VariableDeclarators
| ModifiersOpt PrimitiveType VariableDeclarators
| Expression VariableDeclarators (1)
| Expression { ',' Expression }
(1) "Expression" must pose a type.
- parseIfStatement() - Method in class org.codehaus.janino.Parser
-
IfStatement := 'if' '(' Expression ')' Statement [ 'else' Statement ]
- parseImportDeclaration() - Method in class org.codehaus.janino.Parser
-
ImportDeclaration := 'import' ImportDeclarationBody ';'
- parseImportDeclarationBody() - Method in class org.codehaus.janino.Parser
-
ImportDeclarationBody := [ 'static' ] Identifier { '.'
- parseImportDeclarations(Reader) - Static method in class org.codehaus.commons.compiler.jdk.ClassBodyEvaluator
-
Heuristically parses IMPORT declarations at the beginning of the character stream produced by the given
Reader.
- parseInclusiveOrExpression() - Method in class org.codehaus.janino.Parser
-
InclusiveOrExpression :=
ExclusiveOrExpression { '|' ExclusiveOrExpression }
- parseInterfaceBody(Java.InterfaceDeclaration) - Method in class org.codehaus.janino.Parser
-
InterfaceBody := '{' {
';' |
ModifiersOpt (
'void' Identifier MethodDeclarationRest |
'class' ClassDeclarationRest |
'interface' InterfaceDeclarationRest |
Type Identifier (
MethodDeclarationRest |
FieldDeclarationRest
)
)
} '}'
- parseInterfaceDeclarationRest(String, Java.Modifiers, Parser.InterfaceDeclarationContext) - Method in class org.codehaus.janino.Parser
-
InterfaceDeclarationRest :=
Identifier [ typeParameters ]
[ 'extends' ReferenceTypeList ]
InterfaceBody
- parseLabeledStatement() - Method in class org.codehaus.janino.Parser
-
LabeledStatement := Identifier ':' Statement
- parseLiteral() - Method in class org.codehaus.janino.Parser
-
Literal :=
IntegerLiteral
| FloatingPointLiteral
| BooleanLiteral
| CharacterLiteral
| StringLiteral
| NullLiteral
- parseMethodBody() - Method in class org.codehaus.janino.Parser
-
MethodBody := Block
- parseMethodDeclarationRest(String, Java.Modifiers, Java.TypeParameter[], Java.Type, String) - Method in class org.codehaus.janino.Parser
-
MethodDeclarationRest :=
FormalParameters
{ '[' ']' }
[ 'throws' ReferenceTypeList ]
( ';' | MethodBody )
- parseModifiers() - Method in class org.codehaus.janino.Parser
-
ModifiersAndAnnotations := { 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native'
| 'synchronized' | 'transient' | 'volatile' | 'strictfp' | Annotation }
Includes the case "no modifiers".
- parseMultiplicativeExpression() - Method in class org.codehaus.janino.Parser
-
MultiplicativeExpression :=
UnaryExpression { ( '*' | '/' | '%' ) UnaryExpression }
- parsePackageDeclaration() - Method in class org.codehaus.janino.Parser
-
PackageDeclaration := 'package' QualifiedIdentifier ';'
- parsePackageMemberTypeDeclaration() - Method in class org.codehaus.janino.Parser
-
PackageMemberTypeDeclaration := ModifiersOpt PackageMemberTypeDeclarationRest
- parsePath(String) - Static method in class org.codehaus.janino.util.resource.PathResourceFinder
-
Breaks a given string up by the system-dependent path-separator character (on UNIX systems,
this character is ':'; on Microsoft Windows systems it is ';').
- parsePrimary() - Method in class org.codehaus.janino.Parser
-
Primary :=
CastExpression | // CastExpression 15.16
'(' Expression ')' | // ParenthesizedExpression 15.8.5
Literal | // Literal 15.8.1
Name | // AmbiguousName
Name Arguments | // MethodInvocation
Name '[]' { '[]' } | // ArrayType 10.1
Name '[]' { '[]' } '.'
- parseQualifiedIdentifier() - Method in class org.codehaus.janino.Parser
-
QualifiedIdentifier := Identifier { '.'
- Parser - Class in org.codehaus.janino
-
A parser for the Java programming language.
- Parser(Scanner) - Constructor for class org.codehaus.janino.Parser
-
- Parser.ClassDeclarationContext - Enum in org.codehaus.janino
-
The kinds of context where a class declaration can occur.
- Parser.InterfaceDeclarationContext - Enum in org.codehaus.janino
-
The kinds of context where an interface declaration can occur.
- parseReferenceType() - Method in class org.codehaus.janino.Parser
-
ReferenceType := QualifiedIdentifier [ TypeArguments ]
- parseReferenceTypeList() - Method in class org.codehaus.janino.Parser
-
ReferenceTypeList := ReferenceType { ',' ReferenceType }
- parseRelationalExpression() - Method in class org.codehaus.janino.Parser
-
RelationalExpression :=
ShiftExpression {
'instanceof' ReferenceType
| '<' ShiftExpression [ { ',' TypeArgument } '>' ]
| '<' TypeArgument [ { ',' TypeArgument } '>' ]
| ( '>' | '<=' | '>=' ) ShiftExpression
}
- parseReturnStatement() - Method in class org.codehaus.janino.Parser
-
ReturnStatement := 'return' [ Expression ] ';'
- parseScript(Parser, List<Java.BlockStatement>, List<Java.MethodDeclarator>) - Method in class org.codehaus.janino.ScriptEvaluator
-
Fills the given block by parsing statements until EOF and adding them to the block.
- parseSelector(Java.Atom) - Method in class org.codehaus.janino.Parser
-
Selector :=
'.'
- parseShiftExpression() - Method in class org.codehaus.janino.Parser
-
ShiftExpression :=
AdditiveExpression { ( '<<' | '>>' | '>>>' ) AdditiveExpression }
- parseStatement() - Method in class org.codehaus.janino.Parser
-
Statement :=
LabeledStatement |
Block |
IfStatement |
ForStatement |
WhileStatement |
DoStatement |
TryStatement |
'switch' ... |
'synchronized' ... |
ReturnStatement |
ThrowStatement |
BreakStatement |
ContinueStatement |
EmptyStatement |
ExpressionStatement
- parseSwitchStatement() - Method in class org.codehaus.janino.Parser
-
SwitchStatement :=
'switch' '(' Expression ')' '{' { SwitchLabels BlockStatements } '}'
SwitchLabels := SwitchLabels { SwitchLabels }
SwitchLabel := 'case' Expression ':' | 'default' ':'
- parseSynchronizedStatement() - Method in class org.codehaus.janino.Parser
-
SynchronizedStatement :=
'synchronized' '(' expression ')' Block
- parseThrowStatement() - Method in class org.codehaus.janino.Parser
-
ThrowStatement := 'throw' Expression ';'
- parseTryStatement() - Method in class org.codehaus.janino.Parser
-
TryStatement :=
'try' Block Catches [ Finally ] |
'try' Block Finally
Catches := CatchClause { CatchClause }
CatchClause := 'catch' '(' FormalParameter ')' Block
Finally := 'finally' Block
- parseType() - Method in class org.codehaus.janino.Parser
-
Type := (
'byte' | 'short' | 'char' | 'int' | 'long' |
'float' | 'double' | 'boolean' |
ReferenceType
) { '[' ']' }
- parseUnaryExpression() - Method in class org.codehaus.janino.Parser
-
UnaryExpression :=
{ PrefixOperator } Primary { Selector } { PostfixOperator }
PrefixOperator := '++' | '--' | '+' | '-' | '~' | '!'
- parseVariableDeclarator() - Method in class org.codehaus.janino.Parser
-
VariableDeclarator := Identifier VariableDeclaratorRest
- parseVariableDeclaratorRest(String) - Method in class org.codehaus.janino.Parser
-
VariableDeclaratorRest := { '[' ']' } [ '=' VariableInitializer ]
Used by field declarations and local variable declarations.
- parseVariableDeclarators() - Method in class org.codehaus.janino.Parser
-
VariableDeclarators := VariableDeclarator { ',' VariableDeclarator }
- parseVariableInitializer() - Method in class org.codehaus.janino.Parser
-
VariableInitializer :=
ArrayInitializer |
Expression
- parseWhileStatement() - Method in class org.codehaus.janino.Parser
-
WhileStatement := 'while' '(' Expression ')' Statement
- PathResourceFinder - Class in org.codehaus.janino.util.resource
-
A
ResourceFinder that finds its resources along a "path" consisting of JAR
file names, ZIP file names, and directory names.
- PathResourceFinder(File[]) - Constructor for class org.codehaus.janino.util.resource.PathResourceFinder
-
- PathResourceFinder(Iterator<ResourceFinder>) - Constructor for class org.codehaus.janino.util.resource.PathResourceFinder
-
- PathResourceFinder(String) - Constructor for class org.codehaus.janino.util.resource.PathResourceFinder
-
- PATTERNS_ALL - Static variable in class org.codehaus.janino.util.StringPattern
-
- PATTERNS_NONE - Static variable in class org.codehaus.janino.util.StringPattern
-
- peek() - Method in class org.codehaus.janino.Parser
-
- peek(String) - Method in class org.codehaus.janino.Parser
-
- peek(String[]) - Method in class org.codehaus.janino.Parser
-
Checks whether the value of the next token equals any of the suspected; does not consume the next
token.
- peek(Scanner.TokenType[]) - Method in class org.codehaus.janino.Parser
-
Checks whether the type of the next token is any of the suspected; does not consume the next token.
- peekEof() - Method in class org.codehaus.janino.Parser
-
- peekIdentifier() - Method in class org.codehaus.janino.Parser
-
- peekLiteral() - Method in class org.codehaus.janino.Parser
-
- peekNextButOne() - Method in class org.codehaus.janino.Parser
-
- peekNextButOne(String) - Method in class org.codehaus.janino.Parser
-
- peekRead(String) - Method in class org.codehaus.janino.Parser
-
- peekRead(String[]) - Method in class org.codehaus.janino.Parser
-
- popInserter() - Method in class org.codehaus.janino.CodeContext
-
- postConstruct() - Method in class org.codehaus.janino.IClassLoader
-
This method must be called by the constructor of the derived class.
- PPP - Static variable in class org.codehaus.janino.Mod
-
The mask to select the accessibility flags from modifiers.
- pre - Variable in class org.codehaus.janino.Java.Crement
-
Whether this operation is 'pre' (TRUE) or 'post' (FALSE).
- prependParameter(String, String) - Static method in class org.codehaus.janino.MethodDescriptor
-
Patches an additional parameter into a given method descriptor.
- previous() - Method in class org.codehaus.janino.util.iterator.FilterListIterator
-
- previous() - Method in class org.codehaus.janino.util.iterator.ReverseListIterator
-
- previousIndex() - Method in class org.codehaus.janino.util.iterator.FilterListIterator
-
- previousIndex() - Method in class org.codehaus.janino.util.iterator.ReverseListIterator
-
- primitive - Variable in class org.codehaus.janino.Java.PrimitiveType
-
- PrimitiveType(Location, Java.Primitive) - Constructor for class org.codehaus.janino.Java.PrimitiveType
-
- PRIVATE - Static variable in class org.codehaus.janino.Mod
-
The flag indicating 'private accessibility' of the modified element.
- produce() - Method in class org.codehaus.janino.Scanner
-
Produces and returns the next token.
- produce() - Method in interface org.codehaus.janino.util.Producer
-
Produces the next object.
- Producer<T> - Interface in org.codehaus.janino.util
-
- ProducerIterator<T> - Class in org.codehaus.janino.util.iterator
-
- ProducerIterator(Producer<T>) - Constructor for class org.codehaus.janino.util.iterator.ProducerIterator
-
- PROTECTED - Static variable in class org.codehaus.janino.Mod
-
The flag indicating 'protected accessibility' of the modified element.
- PUBLIC - Static variable in class org.codehaus.janino.Mod
-
The flag indicating 'public accessibility' of the modified element.
- pushInserter(CodeContext.Inserter) - Method in class org.codehaus.janino.CodeContext
-
- pw - Variable in class org.codehaus.janino.Unparser
-
Where the visit...() methods print their text.