AST
node type Modifiers

General Info

Production
Modifiers : ASTNode ::= Modifier*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Modifiers
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
ResourceModifiers

Description

Source
Declared in Java1.4Frontend/java.ast at line 190

Member Filters

API level:

Aspect:

Constructors

public Modifiers()
 
public Modifiers(List<Modifier> p0)
 

Attributes

syn boolean isPublic()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 372
Aspect
Modifiers
syn boolean isPrivate()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 373
Aspect
Modifiers
syn boolean isProtected()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 374
Aspect
Modifiers
syn boolean isStatic()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 375
Aspect
Modifiers
syn boolean isFinal()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 376
Aspect
Modifiers
syn boolean isAbstract()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 377
Aspect
Modifiers
syn boolean isVolatile()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 378
Aspect
Modifiers
syn boolean isTransient()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 379
Aspect
Modifiers
syn boolean isStrictfp()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 380
Aspect
Modifiers
syn boolean isSynchronized()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 381
Aspect
Modifiers
syn boolean isNative()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 382
Aspect
Modifiers
syn boolean isSynthetic()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 384
Aspect
Modifiers
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 386
Aspect
Modifiers
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 389
Aspect
Modifiers
syn int numModifier(java.lang.String name)
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 392
Aspect
Modifiers
Source
Declared in Java1.5Frontend/Annotations.jrag at line 214
Aspect
Annotations
syn boolean hasAnnotationSuppressWarnings(java.lang.String s)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 289
Aspect
Annotations
Source
Declared in Java1.5Frontend/Annotations.jrag at line 319
Aspect
Annotations
Returns:
true if the modifier list includes the SafeVarargs annotation
Source
Declared in Java7Frontend/SafeVarargs.jrag at line 49
Aspect
SafeVarargs
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 358
Aspect
Modifiers
inh boolean mayBePublic()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 360
Aspect
Modifiers
inh boolean mayBePrivate()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 361
Aspect
Modifiers
inh boolean mayBeProtected()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 362
Aspect
Modifiers
inh boolean mayBeStatic()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 363
Aspect
Modifiers
inh boolean mayBeFinal()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 364
Aspect
Modifiers
inh boolean mayBeAbstract()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 365
Aspect
Modifiers
inh boolean mayBeVolatile()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 366
Aspect
Modifiers
inh boolean mayBeTransient()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 367
Aspect
Modifiers
inh boolean mayBeStrictfp()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 368
Aspect
Modifiers
inh boolean mayBeSynchronized()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 369
Aspect
Modifiers
inh boolean mayBeNative()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 370
Aspect
Modifiers
inh TypeDecl lookupType(java.lang.String packageName,
                    java.lang.String typeName)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 56
Aspect
Annotations

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public Modifiers clone()
                throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
public Modifiers copy()
Overrides:copy in class ASTNode<ASTNode>
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
public void checkModifiers()
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 314
Aspect
Modifiers
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 435
Aspect
PrettyPrint
public void addRuntimeVisibleAnnotationsAttribute(java.util.Collection c)
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 39
Aspect
AnnotationsCodegen
public void addRuntimeInvisibleAnnotationsAttribute(java.util.Collection c)
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 47
Aspect
AnnotationsCodegen
public java.util.Collection runtimeVisibleAnnotations()
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 96
Aspect
AnnotationsCodegen
public java.util.Collection runtimeInvisibleAnnotations()
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 117
Aspect
AnnotationsCodegen
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>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
public void setModifierList(List<Modifier> list)
Replaces the Modifier list.
Parameters:
list - The new list node to be used as the Modifier list.
public int getNumModifier()
Retrieves the number of children in the Modifier list.
Returns:
Number of children in the Modifier list.
Retrieves the number of children in the Modifier list. Calling this method will not trigger rewrites..
Returns:
Number of children in the Modifier list.
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.
public void addModifier(Modifier node)
Append an element to the Modifier list.
Parameters:
node - The element to append to the Modifier list.
public void addModifierNoTransform(Modifier node)
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.
Retrieves the Modifier list.
Returns:
The node representing the Modifier list.
Retrieves the Modifier list.

This method does not invoke AST transformations.

Returns:
The node representing the Modifier list.
Retrieves the Modifier list.
Returns:
The node representing the Modifier list.
Retrieves the Modifier list.

This method does not invoke AST transformations.

Returns:
The node representing the Modifier list.
Overrides:Define_Annotation_lookupAnnotation in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 424
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

public static final int ACC_PUBLIC
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 11
Aspect
Flags
public static final int ACC_PRIVATE
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 12
Aspect
Flags
public static final int ACC_PROTECTED
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 13
Aspect
Flags
public static final int ACC_STATIC
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 14
Aspect
Flags
public static final int ACC_FINAL
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 15
Aspect
Flags
public static final int ACC_SYNCHRONIZED
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 16
Aspect
Flags
public static final int ACC_SUPER
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 17
Aspect
Flags
public static final int ACC_VOLATILE
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 18
Aspect
Flags
public static final int ACC_TRANSIENT
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 19
Aspect
Flags
public static final int ACC_NATIVE
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 20
Aspect
Flags
public static final int ACC_INTERFACE
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 21
Aspect
Flags
public static final int ACC_ABSTRACT
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 22
Aspect
Flags
public static final int ACC_SYNTHETIC
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 23
Aspect
Flags
public static final int ACC_STRICT
See Also:
Constant Field Values
Source
Declared in Java1.4Backend/Flags.jrag at line 24
Aspect
Flags
public static final int ACC_ANNOTATION
See Also:
Constant Field Values
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 140
Aspect
AnnotationsCodegen
public static final int ACC_ENUM
See Also:
Constant Field Values
Source
Declared in Java1.5Backend/EnumsCodegen.jrag at line 12
Aspect
EnumsCodegen
public static final int ACC_BRIDGE
See Also:
Constant Field Values
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 218
Aspect
GenericsCodegen
public static final int ACC_VARARGS
See Also:
Constant Field Values
Source
Declared in Java1.5Backend/VariableArityParametersCodegen.jrag at line 79
Aspect
VariableArityParametersCodegen
protected boolean isPublic_computed
protected boolean isPublic_value
protected boolean isPrivate_computed
protected boolean isPrivate_value
protected boolean isProtected_computed
protected boolean isProtected_value
protected boolean isStatic_computed
protected boolean isStatic_value
protected boolean isFinal_computed
protected boolean isFinal_value
protected boolean isAbstract_computed
protected boolean isAbstract_value
protected boolean isVolatile_computed
protected boolean isVolatile_value
protected boolean isTransient_computed
protected boolean isTransient_value
protected boolean isStrictfp_computed
protected boolean isStrictfp_value
protected boolean isSynchronized_computed
protected boolean isSynchronized_value
protected boolean isNative_computed
protected boolean isNative_value
protected boolean isSynthetic_computed
protected boolean isSynthetic_value
protected java.util.Map numModifier_String_values

Inherited Members

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value