Class DrlNameExpr

  • All Implemented Interfaces:
    com.github.javaparser.ast.nodeTypes.NodeWithRange<com.github.javaparser.ast.Node>, com.github.javaparser.ast.nodeTypes.NodeWithSimpleName<com.github.javaparser.ast.expr.NameExpr>, com.github.javaparser.ast.nodeTypes.NodeWithTokenRange<com.github.javaparser.ast.Node>, com.github.javaparser.ast.observer.Observable, com.github.javaparser.ast.visitor.Visitable, com.github.javaparser.HasParentNode<com.github.javaparser.ast.Node>, com.github.javaparser.resolution.Resolvable<com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>, java.lang.Cloneable

    public final class DrlNameExpr
    extends com.github.javaparser.ast.expr.NameExpr
    implements com.github.javaparser.ast.nodeTypes.NodeWithSimpleName<com.github.javaparser.ast.expr.NameExpr>, com.github.javaparser.resolution.Resolvable<com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>
    Whenever a SimpleName is used in an expression, it is wrapped in DrlNameExpr.
    In int x = a + 3; a is a SimpleName inside a DrlNameExpr.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.github.javaparser.ast.Node

        com.github.javaparser.ast.Node.BreadthFirstIterator, com.github.javaparser.ast.Node.DirectChildrenIterator, com.github.javaparser.ast.Node.ObserverRegistrationMode, com.github.javaparser.ast.Node.ParentsVisitor, com.github.javaparser.ast.Node.Parsedness, com.github.javaparser.ast.Node.PostOrderIterator, com.github.javaparser.ast.Node.PreOrderIterator, com.github.javaparser.ast.Node.TreeTraversal
    • Field Summary

      • Fields inherited from class com.github.javaparser.ast.Node

        ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      DrlNameExpr()  
      DrlNameExpr​(com.github.javaparser.ast.expr.SimpleName name)  
      DrlNameExpr​(com.github.javaparser.ast.expr.SimpleName name, int backReferencesCount)  
      DrlNameExpr​(com.github.javaparser.TokenRange tokenRange, com.github.javaparser.ast.expr.SimpleName name, int backReferencesCount)
      This constructor is used by the parser and is considered private.
      DrlNameExpr​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R,​A>
      R
      accept​(com.github.javaparser.ast.visitor.GenericVisitor<R,​A> v, A arg)  
      <A> void accept​(com.github.javaparser.ast.visitor.VoidVisitor<A> v, A arg)  
      int getBackReferencesCount()  
      • Methods inherited from class com.github.javaparser.ast.expr.NameExpr

        asNameExpr, clone, getMetaModel, getName, ifNameExpr, isNameExpr, replace, resolve, setName, toNameExpr
      • Methods inherited from class com.github.javaparser.ast.expr.Expression

        appearsInAssignmentContext, appearsInInvocationContext, asAnnotationExpr, asArrayAccessExpr, asArrayCreationExpr, asArrayInitializerExpr, asAssignExpr, asBinaryExpr, asBooleanLiteralExpr, asCastExpr, asCharLiteralExpr, asClassExpr, asConditionalExpr, asDoubleLiteralExpr, asEnclosedExpr, asFieldAccessExpr, asInstanceOfExpr, asIntegerLiteralExpr, asLambdaExpr, asLiteralExpr, asLiteralStringValueExpr, asLongLiteralExpr, asMarkerAnnotationExpr, asMethodCallExpr, asMethodReferenceExpr, asNormalAnnotationExpr, asNullLiteralExpr, asObjectCreationExpr, asPatternExpr, asSingleMemberAnnotationExpr, asStringLiteralExpr, asSuperExpr, asSwitchExpr, asTextBlockLiteralExpr, asThisExpr, asTypeExpr, asUnaryExpr, asVariableDeclarationExpr, calculateResolvedType, elidesTypeArguments, ifAnnotationExpr, ifArrayAccessExpr, ifArrayCreationExpr, ifArrayInitializerExpr, ifAssignExpr, ifBinaryExpr, ifBooleanLiteralExpr, ifCastExpr, ifCharLiteralExpr, ifClassExpr, ifConditionalExpr, ifDoubleLiteralExpr, ifEnclosedExpr, ifFieldAccessExpr, ifInstanceOfExpr, ifIntegerLiteralExpr, ifLambdaExpr, ifLiteralExpr, ifLiteralStringValueExpr, ifLongLiteralExpr, ifMarkerAnnotationExpr, ifMethodCallExpr, ifMethodReferenceExpr, ifNormalAnnotationExpr, ifNullLiteralExpr, ifObjectCreationExpr, ifPatternExpr, ifSingleMemberAnnotationExpr, ifStringLiteralExpr, ifSuperExpr, ifSwitchExpr, ifTextBlockLiteralExpr, ifThisExpr, ifTypeExpr, ifUnaryExpr, ifVariableDeclarationExpr, isAnnotationExpr, isArrayAccessExpr, isArrayCreationExpr, isArrayInitializerExpr, isAssignExpr, isAssignmentContext, isBinaryExpr, isBooleanLiteralExpr, isCastExpr, isCharLiteralExpr, isClassExpr, isConditionalExpr, isDoubleLiteralExpr, isEnclosedExpr, isFieldAccessExpr, isInstanceOfExpr, isIntegerLiteralExpr, isInvocationContext, isLambdaExpr, isLiteralExpr, isLiteralStringValueExpr, isLongLiteralExpr, isMarkerAnnotationExpr, isMethodCallExpr, isMethodReferenceExpr, isNormalAnnotationExpr, isNullLiteralExpr, isObjectCreationExpr, isPatternExpr, isPolyExpression, isQualified, isSingleMemberAnnotationExpr, isStandaloneExpression, isStringLiteralExpr, isSuperExpr, isSwitchExpr, isTextBlockLiteralExpr, isThisExpr, isTypeExpr, isUnaryExpr, isVariableDeclarationExpr, toAnnotationExpr, toArrayAccessExpr, toArrayCreationExpr, toArrayInitializerExpr, toAssignExpr, toBinaryExpr, toBooleanLiteralExpr, toCastExpr, toCharLiteralExpr, toClassExpr, toConditionalExpr, toDoubleLiteralExpr, toEnclosedExpr, toFieldAccessExpr, toInstanceOfExpr, toIntegerLiteralExpr, toLambdaExpr, toLiteralExpr, toLiteralStringValueExpr, toLongLiteralExpr, toMarkerAnnotationExpr, toMethodCallExpr, toMethodReferenceExpr, toNormalAnnotationExpr, toNullLiteralExpr, toObjectCreationExpr, toPatternExpr, toSingleMemberAnnotationExpr, toStringLiteralExpr, toSuperExpr, toSwitchExpr, toTextBlockLiteralExpr, toThisExpr, toTypeExpr, toUnaryExpr, toVariableDeclarationExpr
      • Methods inherited from class com.github.javaparser.ast.Node

        addOrphanComment, containsData, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walk
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.github.javaparser.HasParentNode

        findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithRange

        containsWithin, containsWithinRange, getBegin, getEnd, hasRange
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithSimpleName

        getName, getNameAsExpression, getNameAsString, setName, setName
      • Methods inherited from interface com.github.javaparser.resolution.Resolvable

        resolve
    • Constructor Detail

      • DrlNameExpr

        public DrlNameExpr()
      • DrlNameExpr

        public DrlNameExpr​(java.lang.String name)
      • DrlNameExpr

        public DrlNameExpr​(com.github.javaparser.ast.expr.SimpleName name,
                           int backReferencesCount)
      • DrlNameExpr

        public DrlNameExpr​(com.github.javaparser.ast.expr.SimpleName name)
      • DrlNameExpr

        public DrlNameExpr​(com.github.javaparser.TokenRange tokenRange,
                           com.github.javaparser.ast.expr.SimpleName name,
                           int backReferencesCount)
        This constructor is used by the parser and is considered private.
    • Method Detail

      • accept

        public <R,​A> R accept​(com.github.javaparser.ast.visitor.GenericVisitor<R,​A> v,
                                    A arg)
        Specified by:
        accept in interface com.github.javaparser.ast.visitor.Visitable
        Overrides:
        accept in class com.github.javaparser.ast.expr.NameExpr
      • accept

        public <A> void accept​(com.github.javaparser.ast.visitor.VoidVisitor<A> v,
                               A arg)
        Specified by:
        accept in interface com.github.javaparser.ast.visitor.Visitable
        Overrides:
        accept in class com.github.javaparser.ast.expr.NameExpr
      • getBackReferencesCount

        public int getBackReferencesCount()