Class RuleDeclaration

  • All Implemented Interfaces:
    com.github.javaparser.ast.nodeTypes.modifiers.NodeWithAccessModifiers<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.modifiers.NodeWithPrivateModifier<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.modifiers.NodeWithProtectedModifier<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.modifiers.NodeWithPublicModifier<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.modifiers.NodeWithStaticModifier<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.modifiers.NodeWithStrictfpModifier<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.NodeWithAnnotations<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.NodeWithJavadoc<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.NodeWithMembers<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.NodeWithModifiers<RuleDeclaration>, com.github.javaparser.ast.nodeTypes.NodeWithRange<com.github.javaparser.ast.Node>, com.github.javaparser.ast.nodeTypes.NodeWithSimpleName<RuleDeclaration>, 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>, Cloneable

    public class RuleDeclaration
    extends com.github.javaparser.ast.body.TypeDeclaration<RuleDeclaration>
    • 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
      RuleDeclaration​(com.github.javaparser.TokenRange range, com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.AnnotationExpr> annotations, com.github.javaparser.ast.expr.SimpleName name, RuleBody ruleBody)  
    • 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)  
      RuleBody getRuleBody()  
      com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration resolve()  
      • Methods inherited from class com.github.javaparser.ast.body.TypeDeclaration

        addMember, asTypeDeclaration, clone, getCallablesWithSignature, getFullyQualifiedName, getMembers, getMetaModel, getModifiers, getName, ifTypeDeclaration, isNestedType, isTopLevelType, isTypeDeclaration, remove, replace, setMembers, setModifiers, setName, toTypeDeclaration
      • Methods inherited from class com.github.javaparser.ast.body.BodyDeclaration

        asAnnotationDeclaration, asAnnotationMemberDeclaration, asCallableDeclaration, asClassOrInterfaceDeclaration, asCompactConstructorDeclaration, asConstructorDeclaration, asEnumConstantDeclaration, asEnumDeclaration, asFieldDeclaration, asInitializerDeclaration, asMethodDeclaration, asRecordDeclaration, getAnnotations, ifAnnotationDeclaration, ifAnnotationMemberDeclaration, ifCallableDeclaration, ifClassOrInterfaceDeclaration, ifCompactConstructorDeclaration, ifConstructorDeclaration, ifEnumConstantDeclaration, ifEnumDeclaration, ifFieldDeclaration, ifInitializerDeclaration, ifMethodDeclaration, ifRecordDeclaration, isAnnotationDeclaration, isAnnotationMemberDeclaration, isCallableDeclaration, isClassOrInterfaceDeclaration, isCompactConstructorDeclaration, isConstructorDeclaration, isEnumConstantDeclaration, isEnumDeclaration, isFieldDeclaration, isInitializerDeclaration, isMethodDeclaration, isRecordDeclaration, setAnnotations, toAnnotationDeclaration, toAnnotationMemberDeclaration, toCallableDeclaration, toClassOrInterfaceDeclaration, toCompactConstructorDeclaration, toConstructorDeclaration, toEnumConstantDeclaration, toEnumDeclaration, toFieldDeclaration, toInitializerDeclaration, toMethodDeclaration, toRecordDeclaration
      • 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, 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 interface com.github.javaparser.HasParentNode

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

        addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnit
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithJavadoc

        getComment, getJavadoc, getJavadocComment, hasJavaDocComment, removeJavaDocComment, setComment, setJavadocComment, setJavadocComment, setJavadocComment, setJavadocComment
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithMembers

        addConstructor, addField, addField, addField, addFieldWithInitializer, addFieldWithInitializer, addFieldWithInitializer, addInitializer, addMethod, addPrivateField, addPrivateField, addPrivateField, addProtectedField, addProtectedField, addProtectedField, addPublicField, addPublicField, addPublicField, addStaticInitializer, getConstructorByParameterTypes, getConstructorByParameterTypes, getConstructors, getDefaultConstructor, getFieldByName, getFields, getMember, getMethods, getMethodsByName, getMethodsByParameterTypes, getMethodsByParameterTypes, getMethodsBySignature, isEmpty, setMember, tryAddImportToParentCompilationUnit
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithModifiers

        addModifier, getAccessSpecifier, hasModifier, removeModifier, setModifier, setModifiers
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithPrivateModifier

        isPrivate, setPrivate
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithProtectedModifier

        isProtected, setProtected
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithPublicModifier

        isPublic, setPublic
      • 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

        getNameAsExpression, getNameAsString, setName
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithStaticModifier

        isStatic, setStatic
      • Methods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithStrictfpModifier

        isStrictfp, setStrictfp
    • Constructor Detail

      • RuleDeclaration

        public RuleDeclaration​(com.github.javaparser.TokenRange range,
                               com.github.javaparser.ast.NodeList<com.github.javaparser.ast.expr.AnnotationExpr> annotations,
                               com.github.javaparser.ast.expr.SimpleName name,
                               RuleBody ruleBody)
    • Method Detail

      • accept

        public <R,​A> R accept​(com.github.javaparser.ast.visitor.GenericVisitor<R,​A> v,
                                    A arg)
      • accept

        public <A> void accept​(com.github.javaparser.ast.visitor.VoidVisitor<A> v,
                               A arg)
      • getRuleBody

        public RuleBody getRuleBody()
      • resolve

        public com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration resolve()
        Specified by:
        resolve in class com.github.javaparser.ast.body.TypeDeclaration<RuleDeclaration>