Package soot.JastAddJ

Class Modifiers

    • Field Detail

      • isPublic_computed

        protected boolean isPublic_computed
      • isPublic_value

        protected boolean isPublic_value
      • isPrivate_computed

        protected boolean isPrivate_computed
      • isPrivate_value

        protected boolean isPrivate_value
      • isProtected_computed

        protected boolean isProtected_computed
      • isProtected_value

        protected boolean isProtected_value
      • isStatic_computed

        protected boolean isStatic_computed
      • isStatic_value

        protected boolean isStatic_value
      • isFinal_computed

        protected boolean isFinal_computed
      • isFinal_value

        protected boolean isFinal_value
      • isAbstract_computed

        protected boolean isAbstract_computed
      • isAbstract_value

        protected boolean isAbstract_value
      • isVolatile_computed

        protected boolean isVolatile_computed
      • isVolatile_value

        protected boolean isVolatile_value
      • isTransient_computed

        protected boolean isTransient_computed
      • isTransient_value

        protected boolean isTransient_value
      • isStrictfp_computed

        protected boolean isStrictfp_computed
      • isStrictfp_value

        protected boolean isStrictfp_value
      • isSynchronized_computed

        protected boolean isSynchronized_computed
      • isSynchronized_value

        protected boolean isSynchronized_value
      • isNative_computed

        protected boolean isNative_computed
      • isNative_value

        protected boolean isNative_value
      • isSynthetic_computed

        protected boolean isSynthetic_computed
      • isSynthetic_value

        protected boolean isSynthetic_value
      • numModifier_String_values

        protected Map numModifier_String_values
    • Constructor Detail

      • Modifiers

        public Modifiers()
    • Method Detail

      • fullCopy

        public Modifiers fullCopy()
        Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
        Overrides:
        fullCopy in class ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • checkModifiers

        public void checkModifiers()
      • addSourceOnlyAnnotations

        public void addSourceOnlyAnnotations​(Collection c)
      • addAllAnnotations

        public void addAllAnnotations​(Collection c)
      • addRuntimeVisibleAnnotationsAttribute

        public void addRuntimeVisibleAnnotationsAttribute​(Collection c)
      • addRuntimeInvisibleAnnotationsAttribute

        public void addRuntimeInvisibleAnnotationsAttribute​(Collection c)
      • runtimeVisibleAnnotations

        public Collection runtimeVisibleAnnotations()
      • runtimeInvisibleAnnotations

        public Collection runtimeInvisibleAnnotations()
      • init$Children

        public void init$Children()
        Initializes the child array to the correct size. Initializes List and Opt nta children.
        Overrides:
        init$Children in class ASTNode<ASTNode>
      • setModifierList

        public void setModifierList​(List<Modifier> list)
        Replaces the Modifier list.
        Parameters:
        list - The new list node to be used as the Modifier list.
      • getNumModifier

        public int getNumModifier()
        Retrieves the number of children in the Modifier list.
        Returns:
        Number of children in the Modifier list.
      • getNumModifierNoTransform

        public int getNumModifierNoTransform()
        Retrieves the number of children in the Modifier list. Calling this method will not trigger rewrites..
        Returns:
        Number of children in the Modifier list.
      • getModifier

        public Modifier getModifier​(int i)
        Retrieves the element at index i in the Modifier list..
        Parameters:
        i - Index of the element to return.
        Returns:
        The element at position i in the Modifier list.
      • addModifier

        public void addModifier​(Modifier node)
        Append an element to the Modifier list.
        Parameters:
        node - The element to append to the Modifier list.
      • addModifierNoTransform

        public void addModifierNoTransform​(Modifier node)
      • setModifier

        public void setModifier​(Modifier node,
                                int i)
        Replaces the Modifier list element at index i with the new node node.
        Parameters:
        node - The new node to replace the old list element.
        i - The list index of the node to be replaced.
      • getModifiers

        public List<Modifier> getModifiers()
        Retrieves the Modifier list.
        Returns:
        The node representing the Modifier list.
      • getModifiersNoTransform

        public List<Modifier> getModifiersNoTransform()
        Retrieves the Modifier list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Modifier list.
      • getModifierList

        public List<Modifier> getModifierList()
        Retrieves the Modifier list.
        Returns:
        The node representing the Modifier list.
      • getModifierListNoTransform

        public List<Modifier> getModifierListNoTransform()
        Retrieves the Modifier list.

        This method does not invoke AST transformations.

        Returns:
        The node representing the Modifier list.
      • isPublic

        public boolean isPublic()
      • isPrivate

        public boolean isPrivate()
      • isProtected

        public boolean isProtected()
      • isStatic

        public boolean isStatic()
      • isFinal

        public boolean isFinal()
      • isAbstract

        public boolean isAbstract()
      • isVolatile

        public boolean isVolatile()
      • isTransient

        public boolean isTransient()
      • isStrictfp

        public boolean isStrictfp()
      • isSynchronized

        public boolean isSynchronized()
      • isNative

        public boolean isNative()
      • isSynthetic

        public boolean isSynthetic()
      • numProtectionModifiers

        public int numProtectionModifiers()
      • numCompletenessModifiers

        public int numCompletenessModifiers()
      • numModifier

        public int numModifier​(String name)
      • hasAnnotationSuppressWarnings

        public boolean hasAnnotationSuppressWarnings​(String s)
      • hasDeprecatedAnnotation

        public boolean hasDeprecatedAnnotation()
      • hasAnnotationSafeVarargs

        public boolean hasAnnotationSafeVarargs()
        Returns:
        true if the modifier list includes the SafeVarargs annotation
      • mayBePublic

        public boolean mayBePublic()
      • mayBePrivate

        public boolean mayBePrivate()
      • mayBeProtected

        public boolean mayBeProtected()
      • mayBeStatic

        public boolean mayBeStatic()
      • mayBeFinal

        public boolean mayBeFinal()
      • mayBeAbstract

        public boolean mayBeAbstract()
      • mayBeVolatile

        public boolean mayBeVolatile()
      • mayBeTransient

        public boolean mayBeTransient()
      • mayBeStrictfp

        public boolean mayBeStrictfp()
      • mayBeSynchronized

        public boolean mayBeSynchronized()
      • mayBeNative

        public boolean mayBeNative()