Class AjAST
-
Field Summary
Fields inherited from class AST
JLS_Latest, JLS10, JLS11, JLS12, JLS13, JLS14, JLS15, JLS16, JLS17, JLS18, JLS19, JLS2, JLS20, JLS21, JLS22, JLS23, JLS24, JLS25, JLS26, JLS3, JLS4, JLS8, JLS9Modifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.static final intDeprecated.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intConstant for indicating the AST API that handles JLS20.static final intConstant for indicating the AST API that handles JLS21.static final intConstant for indicating the AST API that handles JLS22.static final intConstant for indicating the AST API that handles JLS23.static final intConstant for indicating the AST API that handles JLS24.static final intConstant for indicating the AST API that handles JLS25.static final intConstant for indicating the AST API that handles JLS26.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead.static final intDeprecated.Clients should use theAST.getJLSLatest()AST API instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompilationUnitconvertCompilationUnit(int level, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, CompilationUnit workingCopy, org.eclipse.core.runtime.IProgressMonitor monitor) Internal method.Creates an unparented after advice declaration node owned by this AST.Creates an unparented after returning advice declaration node owned by this AST.Creates an unparented after throwing advice declaration node owned by this AST.static AjASTnewAjAST(int level, boolean previewEnabled) Creates a new AspectJ abstract syntax tree (AST) following the specified set of API rules.Creates an unparented ajtype declaration node owned by this AST.Creates an unparented AndPointcut node owned by this AST.Creates an unparented around advice declaration node owned by this AST.Creates an unparented aspect declaration node owned by this AST.Creates an unparented before advice declaration node owned by this AST.Creates an unparented CflowPointcut node owned by this AST.Creates an unparented declare at constructor declaration node owned by this AST.Creates an unparented declare at field declaration node owned by this AST.Creates an unparented declare at method declaration node owned by this AST.Creates an unparented declare at type declaration node owned by this AST.Creates an unparented declare error declaration node owned by this AST.Creates an unparented declare parents declaration node owned by this AST.Creates an unparented declare precedence declaration node owned by this AST.Creates an unparented declare soft declaration node owned by this AST.Creates an unparented declare warning declaration node owned by this AST.Creates an unparented default pointcut node owned by this AST.Creates an unparented default type pattern node owned by this AST.Creates a new unparented intertype field declaration node owned by this AST.Creates an unparented intertype method declaration node owned by this AST.Creates an unparented NotPointcut node owned by this AST.Creates an unparented OrPointcut node owned by this AST.Creates an unparented PerCflow node owned by this AST.Creates an unparented perobject node owned by this AST.Creates an unparented pertypewithin node owned by this AST.Creates an unparented pointcut declaration node owned by this AST.Creates an unparented reference pointcut node owned by this AST.Creates an unparented default signature pattern node owned by this AST.Methods inherited from class AST
apiLevel, convertCompilationUnit, convertCompilationUnit, createInstance, createInstance, getAllSupportedVersions, getAllVersions, getJLSLatest, hasBindingsRecovery, hasResolvedBindings, hasStatementsRecovery, isPreviewEnabled, isPreviewEnabledSet, isSupportedVersion, modificationCount, newAnnotationTypeDeclaration, newAnnotationTypeMemberDeclaration, newAnonymousClassDeclaration, newArrayAccess, newArrayCreation, newArrayInitializer, newArrayType, newArrayType, newAssertStatement, newAssignment, newAST, newAST, newAST, newBlock, newBlockComment, newBooleanLiteral, newBreakStatement, newCaseDefaultExpression, newCastExpression, newCatchClause, newCharacterLiteral, newClassInstanceCreation, newCompilationUnit, newConditionalExpression, newConstructorInvocation, newContinueStatement, newCreationReference, newDimension, newDoStatement, newEitherOrMultiPattern, newEmptyStatement, newEnhancedForStatement, newEnumConstantDeclaration, newEnumDeclaration, newExportsStatement, newExpressionMethodReference, newExpressionStatement, newFieldAccess, newFieldDeclaration, newForStatement, newGuardedPattern, newIfStatement, newImplicitTypeDeclaration, newImportDeclaration, newInfixExpression, newInitializer, newInstanceofExpression, newIntersectionType, newJavadoc, newJavaDocRegion, newJavaDocTextElement, newLabeledStatement, newLambdaExpression, newLineComment, newMarkerAnnotation, newMemberRef, newMemberValuePair, newMethodDeclaration, newMethodInvocation, newMethodRef, newMethodRefParameter, newModifier, newModifiers, newModuleDeclaration, newModuleModifier, newName, newName, newNameQualifiedType, newNormalAnnotation, newNullLiteral, newNullPattern, newNumberLiteral, newNumberLiteral, newOpensDirective, newPackageDeclaration, newParameterizedType, newParenthesizedExpression, newPatternInstanceofExpression, newPostfixExpression, newPrefixExpression, newPrimitiveType, newProvidesDirective, newQualifiedName, newQualifiedType, newRecordDeclaration, newRecordPattern, newRequiresDirective, newReturnStatement, newSimpleName, newSimpleType, newSingleMemberAnnotation, newSingleVariableDeclaration, newStringLiteral, newSuperConstructorInvocation, newSuperFieldAccess, newSuperMethodInvocation, newSuperMethodReference, newSwitchCase, newSwitchExpression, newSwitchStatement, newSynchronizedStatement, newTagElement, newTagProperty, newTextBlock, newTextElement, newThisExpression, newThrowStatement, newTryStatement, newTypeDeclaration, newTypeDeclarationStatement, newTypeDeclarationStatement, newTypeLiteral, newTypeMethodReference, newTypeParameter, newTypePattern, newUnionType, newUsesDirective, newVariableDeclarationExpression, newVariableDeclarationFragment, newVariableDeclarationStatement, newWhileStatement, newWildcardType, newYieldStatement, parseCompilationUnit, parseCompilationUnit, parseCompilationUnit, parseCompilationUnit, resolveWellKnownTypeModifier and TypeMethodDescriptionintapiLevel()Return the API level supported by this AST.static CompilationUnitconvertCompilationUnit(int level, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, CompilationUnit workingCopy, int reconcileFlags, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.Use org.eclipse.jdt.core.dom.AST.convertCompilationUnit(int, CompilationUnitDeclaration, Map, boolean, CompilationUnit, int, IProgressMonitor) insteadstatic CompilationUnitconvertCompilationUnit(int level, CompilationUnitDeclaration compilationUnitDeclaration, Map options, boolean isResolved, CompilationUnit workingCopy, int reconcileFlags, org.eclipse.core.runtime.IProgressMonitor monitor) Internal method.createInstance(int nodeType) Creates an unparented node of the given node type.createInstance(Class nodeClass) Creates an unparented node of the given node class (non-abstract subclass ofASTNode).Returns allAST#JLS*levels fully supported by JDT in the order of their introduction.Returns allAST#JLS*levels in the order of their introduction.static intReturns latest supported JLS levelbooleanReturns true if the ast tree was created with bindings recovery, false otherwisebooleanReturns true if the ast tree was created with bindings, false otherwisebooleanReturns true if the ast tree was created with statements recovery, false otherwisebooleanbooleanstatic booleanisSupportedVersion(int version) Not all known JLS versions are fully supported by JDT.longReturns the modification count for this AST.Creates and returns a new unparented annotation type declaration node for an unspecified, but legal, name; no modifiers; no javadoc; and an empty list of member declarations.Creates and returns a new unparented annotation type member declaration node for an unspecified, but legal, member name and type; no modifiers; no javadoc; and no default value.Creates and returns a new unparented anonymous class declaration node owned by this AST.Creates and returns a new unparented array access expression node owned by this AST.Creates and returns a new unparented array creation expression node owned by this AST.Creates and returns a new unparented array initializer node owned by this AST.newArrayType(Type elementType) Creates and returns a new unparented array type node with the given element type, which cannot be an array type for API levels JLS8 and later.newArrayType(Type elementType, int dimensions) Creates and returns a new unparented array type node with the given element type and number of dimensions.Creates a new unparented assert statement node owned by this AST.Creates and returns a new unparented assignment expression node owned by this AST.static ASTnewAST(int level) Deprecated.Clients should port their code to use the latest JLS* AST API and callAST.newAST(AST.getJLSLatest(), false)instead of using this constructor.static ASTnewAST(int level, boolean previewEnabled) Creates a new Java abstract syntax tree (AST) following the specified set of API rules.static ASTCreates a new Java abstract syntax tree Following option keys are significant:"org.eclipse.jdt.core.compiler.source"indicates the api level and source compatibility mode (as perJavaCore) - defaults to 1.8"1.8"implies the respective source JDK level 1.8 and api levelAST.JLS8."9", "10", "11" up to "23"implies the respective JDK levels 9, 10, 11 up to 23 and api levelsAST.JLS9,AST.JLS10,AST.JLS11up toAST.JLS23. Additional legal values may be added later."org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures"- indicates whether the preview is enabled or disabled legal values are"enabled"and"disabled"implying preview enabled and disabled respectively.newBlock()Creates an unparented block node owned by this AST, for an empty list of statements.Creates and returns a new block comment placeholder node.newBooleanLiteral(boolean value) Creates and returns a new unparented boolean literal node.Creates an unparented break statement node owned by this AST.Creates and returns a new unparented default case expression node.Creates and returns a new unparented cast expression node owned by this AST.Creates a new unparented catch clause node owned by this AST.Creates and returns a new unparented character literal node.Creates and returns a new unparented class instance creation ("new") expression node owned by this AST.Creates an unparented compilation unit node owned by this AST.Creates and returns a new unparented conditional expression node owned by this AST.Creates an unparented alternate constructor ("this(...);") invocation statement node owned by this AST.Creates an unparented continue statement node owned by this AST.Creates an unparented creation reference node owned by this AST.Creates and returns a new unparented annotatable dimension node (Supported only in JLS8 level).Creates a new unparented do statement node owned by this AST.Creates and returns a new unparented `either or multi-pattern` nodeCreates a new unparented empty statement node owned by this AST.Creates a new unparented enhanced for statement node owned by this AST.Creates an unparented enum constant declaration node owned by this AST.Creates an unparented enum declaration node owned by this AST.Creates and returns a new unparented exports directive node for an unspecified, but legal, name; no target modulesCreates an unparented expression method reference node owned by this AST.newExpressionStatement(Expression expression) Creates a new unparented expression statement node owned by this AST, for the given expression.Creates and returns a new unparented field access expression node owned by this AST.Creates a new unparented field declaration node owned by this AST, for the given variable declaration fragment.Creates a new unparented for statement node owned by this AST.Creates and returns a new unparented guarded pattern node with an unspecified pattern variable name and a null expression.Creates a new unparented if statement node owned by this AST.Creates an unparented class declaration node owned by this AST.Creates an unparented import declaration node owned by this AST.Creates and returns a new unparented infix expression node owned by this AST.Creates an unparented initializer node owned by this AST, with an empty block.Creates and returns a new unparented instanceof expression node owned by this AST.Creates a new unparented intersection type node owned by this AST.Creates and returns a new doc comment node.Creates and returns a new doc comment region node.Creates and returns a new text element node.Creates a new unparented labeled statement node owned by this AST.Creates an unparented lambda expression node owned by this AST.Creates and returns a new line comment placeholder node.Creates and returns a new unparented marker annotation node with an unspecified type name.Creates and returns a new member reference node.Creates and returns a new unparented member value pair node with an unspecified member name and value.Creates an unparented method declaration node owned by this AST.Creates an unparented method invocation expression node owned by this AST.Creates and returns a new method reference node.Creates and returns a new method reference node.newModifier(Modifier.ModifierKeyword keyword) Creates and returns a new unparented modifier node for the given modifier.newModifiers(int flags) Creates and returns a list of new unparented modifier nodes for the given modifier flags.Creates and returns a new unparented module declaration node for an unspecified, but legal, name; no modifiers; no javadoc; and an empty list of statements.Creates and returns a new unparented module modifier node for the given module modifier.Creates and returns a new unparented name node for the given name.Creates and returns a new unparented name node for the given name segments.newNameQualifiedType(Name qualifier, SimpleName name) Creates and returns a new unparented name qualified type node with the given qualifier and name.Creates and returns a new unparented normal annotation node with an unspecified type name and an empty list of member value pairs.Creates and returns a new unparented null literal node.Creates and returns a new unparented null pattern node .Creates and returns a new unparented number literal node.newNumberLiteral(String literal) Creates and returns a new unparented number literal node.Creates and returns a new unparented opens directive node for an unspecified, but legal, name; no target modulesCreates an unparented package declaration node owned by this AST.newParameterizedType(Type type) Creates and returns a new unparented parameterized type node with the given type and an empty list of type arguments.Creates and returns a new unparented parenthesized expression node owned by this AST.Creates and returns a new unparented instanceof expression node owned by this AST.Creates and returns a new unparented postfix expression node owned by this AST.Creates and returns a new unparented prefix expression node owned by this AST.newPrimitiveType(PrimitiveType.Code typeCode) Creates and returns a new unparented primitive type node with the given type code.Creates and returns a new unparented provides directive node for an unspecified, but legal, type; no target typesnewQualifiedName(Name qualifier, SimpleName name) Creates and returns a new unparented qualified name node for the given qualifier and simple name child node.newQualifiedType(Type qualifier, SimpleName name) Creates and returns a new unparented qualified type node with the given qualifier type and name.Creates an unparented record declaration node owned by this AST.Creates and returns a new unparented type pattern node with an unspecified pattern variable.Creates and returns a new unparented requires directive node for an unspecified, but legal, name;Creates a new unparented return statement node owned by this AST.newSimpleName(String identifier) Creates and returns a new unparented simple name node for the given identifier.newSimpleType(Name typeName) Creates and returns a new unparented simple type node with the given type name.Creates and returns a new unparented single member annotation node with an unspecified type name and value.Creates an unparented single variable declaration node owned by this AST.Creates and returns a new unparented string literal node for the empty string literal.Creates an unparented alternate super constructor ("super(...);") invocation statement node owned by this AST.Creates and returns a new unparented super field access expression node owned by this AST.Creates an unparented "super" method invocation expression node owned by this AST.Creates and returns a new unparented super method reference node owned by this AST.Creates a new unparented switch case statement node owned by this AST.Creates and returns a new unparented switch expression node owned by this AST.Creates a new unparented switch statement node owned by this AST.Creates a new unparented synchronized statement node owned by this AST.Creates and returns a new tag element node.Creates and returns a new tag property node.Creates an unparented yield statement node owned by this AST.Creates and returns a new text element node.Creates and returns a new unparented "this" expression node owned by this AST.Creates a new unparented throw statement node owned by this AST.Creates a new unparented try statement node owned by this AST.Creates an unparented class declaration node owned by this AST.Creates a new unparented local type declaration statement node owned by this AST, for the given type declaration.Creates a new unparented local type declaration statement node owned by this AST, for the given type declaration.Creates and returns a new unparented type literal expression node owned by this AST.Creates an unparented type method reference node owned by this AST.Creates and returns a new unparented type parameter type node with an unspecified type variable name and an empty list of type bounds.Creates and returns a new unparented type pattern node with an unspecified pattern variable.Creates a new unparented union type node owned by this AST.Creates and returns a new unparented uses directive node for an unspecified, but legal, name;Creates a new unparented local variable declaration expression node owned by this AST, for the given variable declaration fragment.Creates an unparented variable declaration fragment node owned by this AST.Creates a new unparented local variable declaration statement node owned by this AST, for the given variable declaration fragment.Creates a new unparented while statement node owned by this AST.Creates and returns a new unparented wildcard type node with no type bound.Creates an unparented yield statement node owned by this AST.static CompilationUnitparseCompilationUnit(char[] source) Deprecated.UseASTParserinstead.static CompilationUnitparseCompilationUnit(char[] source, String unitName, IJavaProject project) Deprecated.UseASTParserinstead.static CompilationUnitparseCompilationUnit(IClassFile classFile, boolean resolveBindings) Deprecated.UseASTParserinstead.static CompilationUnitparseCompilationUnit(ICompilationUnit unit, boolean resolveBindings) Deprecated.UseASTParserinstead.resolveWellKnownType(String name) Returns the type binding for a "well known" type.
-
Method Details
-
newAjAST
Creates a new AspectJ abstract syntax tree (AST) following the specified set of API rules.Clients should use this method specifing
AST.JLS3as the AST level in all cases, even when dealing with JDK 1.3 or 1.4..- Parameters:
level- the API level; one of the LEVEL constants- Returns:
- new AST instance following the specified set of API rules.
- Throws:
IllegalArgumentException- if:- the API level is not one of the LEVEL constants
- Since:
- 3.0
-
convertCompilationUnit
public static CompilationUnit convertCompilationUnit(int level, CompilationUnitDeclaration compilationUnitDeclaration, char[] source, Map options, boolean isResolved, CompilationUnit workingCopy, org.eclipse.core.runtime.IProgressMonitor monitor) Internal method.This method converts the given internal compiler AST for the given source string into a compilation unit. This method is not intended to be called by clients.
- Parameters:
level- the API level; one of the LEVEL constantscompilationUnitDeclaration- an internal AST node for a compilation unit declarationsource- the string of the Java compilation unitoptions- compiler optionsisResolved- whether the given compilation unit declaration is resolvedworkingCopy- the working copy that the AST is created frommonitor- the progress monitor used to report progress and request cancelation, ornullif none- Returns:
- the compilation unit node
-
newAspectDeclaration
Creates an unparented aspect declaration node owned by this AST. The name of the aspect is an unspecified, but legal, name; no modifiers; no doc comment; no superclass or superinterfaces; an empty body; a null perclause; and is not privilegedTo set the perclause, use this method and then call
AspectDeclaration.setPerClause(ASTNode).To create a privileged aspect, use this method and then call
AspectDeclaration.setPrivileged(true).- Returns:
- a new unparented aspect declaration node
-
newAjTypeDeclaration
Creates an unparented ajtype declaration node owned by this AST. The name of the class is an unspecified, but legal, name; no modifiers; no doc comment; no superclass or superinterfaces; and an empty body.To create an aspect, use this method and then call
AjTypeDeclaration.setAspect(true).- Returns:
- a new unparented ajtype declaration node
-
newAfterAdviceDeclaration
Creates an unparented after advice declaration node owned by this AST. By default, the declaration is for an after advice with no pointcut; no doc comment; and no body (as opposed to an empty body).- Returns:
- a new unparented after advice declaration node
-
newAfterReturningAdviceDeclaration
Creates an unparented after returning advice declaration node owned by this AST. By default, the declaration is for an after returning advice with no pointcut; no doc comment; no return value and no body (as opposed to an empty body).- Returns:
- a new unparented after returning advice declaration node
-
newAfterThrowingAdviceDeclaration
Creates an unparented after throwing advice declaration node owned by this AST. By default, the declaration is for an after throwing advice with no pointcut; no doc comment; no throwing value and no body (as opposed to an empty body).- Returns:
- a new unparented after throwing advice declaration node
-
newBeforeAdviceDeclaration
Creates an unparented before advice declaration node owned by this AST. By default, the declaration is for a before advice with no pointcut; no doc comment; and no body (as opposed to an empty body).- Returns:
- a new unparented before advice declaration node
-
newAroundAdviceDeclaration
Creates an unparented around advice declaration node owned by this AST. By default, the declaration is for an around advice with no pointcut; no doc comment; no return type; and no body (as opposed to an empty body).- Returns:
- a new unparented around advice declaration node
-
newDeclareAtConstructorDeclaration
Creates an unparented declare at constructor declaration node owned by this AST. By default, the declaration is for a declare annotation with no doc comment; no pattern node; no annotation name; and no declare kind.- Returns:
- a new unparented declare at constructor declaration node
- Throws:
UnsupportedOperationException- if this operation is used in a JLS2 AST
-
newDeclareAtFieldDeclaration
Creates an unparented declare at field declaration node owned by this AST. By default, the declaration is for a declare annotation with no doc comment; no pattern node; no annotation name; and no declare kind.- Returns:
- a new unparented declare at field declaration node
- Throws:
UnsupportedOperationException- if this operation is used in a JLS2 AST
-
newDeclareAtMethodDeclaration
Creates an unparented declare at method declaration node owned by this AST. By default, the declaration is for a declare annotation with no doc comment; no pattern node; no annotation name; and no declare kind.- Returns:
- a new unparented declare at method declaration node
- Throws:
UnsupportedOperationException- if this operation is used in a JLS2 AST
-
newDeclareAtTypeDeclaration
Creates an unparented declare at type declaration node owned by this AST. By default, the declaration is for a declare annotation with no doc comment; no pattern node; no annotation name; and no declare kind.- Returns:
- a new unparented declare at type declaration node
- Throws:
UnsupportedOperationException- if this operation is used in a JLS2 AST
-
newDeclareErrorDeclaration
Creates an unparented declare error declaration node owned by this AST. By default, the declaration is for a declare error with no doc comment; no pointcut; and no message.- Returns:
- a new unparented declare error declaration node
-
newDeclareParentsDeclaration
Creates an unparented declare parents declaration node owned by this AST. By default, the declaration is for a declare parents which is implements; with no doc comment; no child type pattern; and no parent type patternTo create an extends declare parents, use this method and then call
DeclareParentsDeclaration.setExtends(true).- Returns:
- a new unparented declare parents declaration node
-
newDeclarePrecedenceDeclaration
Creates an unparented declare precedence declaration node owned by this AST. By default, the declaration is for a declare precedence with no doc comment; and no type pattern list.- Returns:
- a new unparented declare precedence declaration node
-
newDeclareSoftDeclaration
Creates an unparented declare soft declaration node owned by this AST. By default, the declaration is for a declare soft with no doc comment; no pointcut; and no type pattern.- Returns:
- a new unparented declare soft declaration node
-
newDeclareWarningDeclaration
Creates an unparented declare warning declaration node owned by this AST. By default, the declaration is for a declare warning with no doc comment; no pointcut; and no message.- Returns:
- a new unparented declare warning declaration node
-
newInterTypeFieldDeclaration
Creates a new unparented intertype field declaration node owned by this AST. By default, there are no modifiers, no doc comment, and the base type is unspecified (but legal).- Returns:
- a new unparented intertype field declaration node
-
newInterTypeMethodDeclaration
Creates an unparented intertype method declaration node owned by this AST. By default, the declaration is for a method of an unspecified, but legal, name; no modifiers; no doc comment; no parameters; return type void; no extra array dimensions; no thrown exceptions; and no body (as opposed to an empty body).- Returns:
- a new unparented inter type method declaration node
-
newPointcutDeclaration
Creates an unparented pointcut declaration node owned by this AST. By default, the declaration is for a pointcut of an unspecified, but legal, name; no modifiers; no doc comment; and no pointcut designator- Returns:
- a new unparented pointcut declaration node
-
newAndPointcut
Creates an unparented AndPointcut node owned by this AST. By default, the declaration is for an and pointcut with no left or right pointcut designators- Returns:
- a new unparented AndPointcut node
-
newCflowPointcut
Creates an unparented CflowPointcut node owned by this AST. By default, the declaration is for a cflow pointcut with no body pointcut designator- Returns:
- a new unparented CflowPointcut node
-
newNotPointcut
Creates an unparented NotPointcut node owned by this AST. By default, the declaration is for a not pointcut with no body pointcut designator- Returns:
- a new unparented NotPointcut node
-
newOrPointcut
Creates an unparented OrPointcut node owned by this AST. By default, the declaration is for an or pointcut with no left or right pointcut designators- Returns:
- a new unparented OrPointcut node
-
newPerCflow
Creates an unparented PerCflow node owned by this AST. By default, the declaration is for a percflow with no body pointcut designator- Returns:
- a new unparented percflow node
-
newPerObject
Creates an unparented perobject node owned by this AST. By default, the declaration is for a perobject with no body pointcut designator- Returns:
- a new unparented perobject node
-
newPerTypeWithin
Creates an unparented pertypewithin node owned by this AST. By default, the declaration is for a pertypewithin- Returns:
- a new unparented pertypewithin node
-
newReferencePointcut
Creates an unparented reference pointcut node owned by this AST. By default, the declaration is for a reference pointcut with no name- Returns:
- a new unparented reference pointcut node
-
newDefaultPointcut
Creates an unparented default pointcut node owned by this AST. By default, the declaration is for a default pointcut with an empty detail string.To edit the detail string, use this method and then call
DefaultPointcut.setDetail("newString").- Returns:
- a new unparented default pointcut node
-
newDefaultTypePattern
Creates an unparented default type pattern node owned by this AST. By default, the declaration is for a default type pattern with an empty detail string.To edit the detail string, use this method and then call
DefaultTypePattern.setDetail("newString").- Returns:
- a new unparented default type pattern node
-
newSignaturePattern
Creates an unparented default signature pattern node owned by this AST. By default, the declaration is for a default signature pattern with an empty detail string.To edit the detail string, use this method and then call
SignaturePattern.setDetail("newString").- Returns:
- a new unparented default signature pattern node
-
AST.getJLSLatest()