| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--openjava.ptree.ParseTreeObject
        |
        +--openjava.ptree.List
              |
              +--openjava.ptree.ModifierList
The ModifierList class presents for the node of parse tree of qualified name.
| Field Summary | |
static int | 
ABSTRACT
 | 
static int | 
EMPTY
 | 
static int | 
FINAL
 | 
private  int | 
mod
 | 
static int | 
NATIVE
 | 
static int | 
PRIVATE
 | 
static int | 
PROTECTED
 | 
static int | 
PUBLIC
 | 
static int | 
STATIC
 | 
static int | 
SYNCHRONIZED
 | 
static int | 
TRANSIENT
 | 
static int | 
VOLATILE
 | 
| Fields inherited from class openjava.ptree.List | 
 | 
| Fields inherited from class openjava.ptree.ParseTreeObject | 
debugFlag, debugLevel, LN, out, writerStack | 
| Constructor Summary | |
ModifierList()
 | 
|
ModifierList(int mod)
 | 
|
ModifierList(String e0)
 | 
|
| Method Summary | |
 void | 
accept(ParseTreeVisitor v)
Accepts a ParseTreeVisitor object as the role of a
 Visitor in the Visitor pattern, as the role of an Element in the
 Visitor pattern. | 
 void | 
add(int mod)
Adds the specified element after the list This causes side-effect.  | 
 void | 
add(String p)
Adds the specified element after the list This causes side-effect.  | 
 void | 
append(ModifierList lst)
Appends a list after this list.  | 
 boolean | 
contains(int mod)
 | 
 boolean | 
contains(String str)
Tests if any element representing the specified string is exist or not.  | 
 String | 
get(int n)
Gets the specified element at  | 
 int | 
getRegular()
 | 
 void | 
insertElementAt(String p,
                int n)
Inserts the specified element into the list before the specified element of the list.  | 
 boolean | 
isEmpty()
Tests if this list is empty.  | 
 boolean | 
isEmptyAsRegular()
 | 
 String | 
remove(int n)
Removes an element at the specified point from this list  | 
 void | 
set(int n,
    String p)
Sets the specified element at the specified place of the list  | 
 String | 
toString()
Generates string which presents for this parse-tree  | 
static String | 
toString(int mod)
Return a string describing the access modifier flags in the specified modifier.  | 
 void | 
writeCode()
Writes the code this parse-tree presents for.  | 
| Methods inherited from class openjava.ptree.List | 
childrenAccept, contents_addElement, contents_elementAt, contents_insertElementAt, contents_removeElementAt, contents_setElementAt, contents_size, elements, equals, makeRecursiveCopy, removeAll, replaceChildWith, size | 
| Methods inherited from class openjava.ptree.ParseTreeObject | 
clone, eq, eq, equal, flushPrintWriter, getDebugFlag, getNest, getObjectID, getParent, getPrintWriter, getTab, hashCode, lastObjectID, makeCopy, popNest, popPrintWriter, pushNest, pushPrintWriter, replace, setDebugFlag, setDebugLevel, setNest, setParent, setPrintStream, setTab, toFlattenString, writeDebug, writeDebugL, writeDebugLln, writeDebugln, writeDebugLR, writeDebugR, writeDebugRln, writeTab | 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface openjava.ptree.ParseTree | 
eq, getObjectID, makeCopy, replace, toFlattenString | 
| Field Detail | 
public static final int PUBLIC
public static final int PROTECTED
public static final int PRIVATE
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int ABSTRACT
public static final int EMPTY
private int mod
| Constructor Detail | 
public ModifierList()
public ModifierList(String e0)
public ModifierList(int mod)
| Method Detail | 
public void writeCode()
List
writeCode in interface ParseTreewriteCode in class Listpublic String toString()
ParseTree
toString in interface ParseTreetoString in class ParseTreeObjectpublic static String toString(int mod)
    public final synchronized
    private transient volatile
 
 The modifier names are return in canonical order, as
 specified by The Java Language Specification.
public boolean isEmpty()
List
isEmpty in class Listpublic boolean isEmptyAsRegular()
public boolean contains(String str)
List
contains in class Liststr - a string to test.
public boolean contains(int mod)
public String get(int n)
n - 
public void set(int n,
                String p)
p - elementn - the number where to set elementpublic void add(int mod)
public void add(String p)
p - a modifier to be inserted into the listpublic String remove(int n)
n - where to remove element.
public void insertElementAt(String p,
                            int n)
p - the element to be inserted into the listn - number of the element before which insertion ocuurspublic void append(ModifierList lst)
lst - a list to be appendedpublic int getRegular()
public void accept(ParseTreeVisitor v)
            throws ParseTreeException
ParseTreeParseTreeVisitor object as the role of a
 Visitor in the Visitor pattern, as the role of an Element in the
 Visitor pattern.
 
 This invoke an appropriate visit() method on the
 accepted visitor.
accept in interface ParseTreeaccept in class ParseTreeObjectv - a visitor
ParseTreeException
  | 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||