Class Modifier

    • Constructor Detail

      • Modifier

        public Modifier()
      • Modifier

        public Modifier​(TokenRange tokenRange,
                        Modifier.Keyword keyword)
        This constructor is used by the parser and is considered private.
    • Method Detail

      • publicModifier

        public static Modifier publicModifier()
      • protectedModifier

        public static Modifier protectedModifier()
      • privateModifier

        public static Modifier privateModifier()
      • abstractModifier

        public static Modifier abstractModifier()
      • staticModifier

        public static Modifier staticModifier()
      • finalModifier

        public static Modifier finalModifier()
      • transientModifier

        public static Modifier transientModifier()
      • volatileModifier

        public static Modifier volatileModifier()
      • synchronizedModifier

        public static Modifier synchronizedModifier()
      • nativeModifier

        public static Modifier nativeModifier()
      • strictfpModifier

        public static Modifier strictfpModifier()
      • transitiveModifier

        public static Modifier transitiveModifier()
      • accept

        public <R,​A> R accept​(GenericVisitor<R,​A> v,
                                    A arg)
        Description copied from interface: Visitable
        Accept method for visitor support.
        Type Parameters:
        R - the type of the return value of the visitor
        A - the type the user argument passed to the visitor
        Parameters:
        v - the visitor implementation
        arg - the argument passed to the visitor (of type A)
        Returns:
        the result of the visit (of type R)
      • accept

        public <A> void accept​(VoidVisitor<A> v,
                               A arg)
        Description copied from interface: Visitable
        Accept method for visitor support.
        Type Parameters:
        A - the type the argument passed for the visitor
        Parameters:
        v - the visitor implementation
        arg - any value relevant for the visitor (of type A)
      • createModifierList

        public static NodeList<Modifier> createModifierList​(Modifier.Keyword... modifiers)
        Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList.
      • remove

        public boolean remove​(Node node)
        Overrides:
        remove in class Node
      • replace

        public boolean replace​(Node node,
                               Node replacementNode)
        Overrides:
        replace in class Node