cetus.hir
Class AccessSymbol

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<Symbol>
                  extended by cetus.hir.AccessSymbol
All Implemented Interfaces:
Symbol, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Symbol>, java.util.Collection<Symbol>, java.util.Deque<Symbol>, java.util.List<Symbol>, java.util.Queue<Symbol>

public class AccessSymbol
extends java.util.LinkedList<Symbol>
implements Symbol

AccessSymbol represents a list of symbols collected from each identifier in an AccessExpression object. We keep a list of symbols since the attributes of AccessExpression objects may vary case by case.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AccessSymbol(AccessExpression ae)
          Constructs an access symbol from the given access expression.
 
Method Summary
 java.util.List getArraySpecifiers()
          Returns the array specifiers of the access symbol.
 java.lang.String getSymbolName()
          Returns the string name of the access symbol.
 java.util.List getTypeSpecifiers()
          Returns the type of the access symbol which is collected from the last element of the list.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

AccessSymbol

public AccessSymbol(AccessExpression ae)
Constructs an access symbol from the given access expression.

Parameters:
ae - the access expression.
Method Detail

getTypeSpecifiers

public java.util.List getTypeSpecifiers()
Returns the type of the access symbol which is collected from the last element of the list.

Specified by:
getTypeSpecifiers in interface Symbol
Returns:
the list of type specifiers.

getArraySpecifiers

public java.util.List getArraySpecifiers()
Returns the array specifiers of the access symbol.

Specified by:
getArraySpecifiers in interface Symbol
Returns:
the list of array specifiers.

getSymbolName

public java.lang.String getSymbolName()
Returns the string name of the access symbol.

Specified by:
getSymbolName in interface Symbol
Returns:
the string name.