APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.javac.model

public Class FilteredMemberList

extends AbstractList<Symbol>
Class Inheritance
Imports
java.util.AbstractList, .Iterator, com.sun.tools.javac.code.Scope, .Symbol

Utility to construct a view of a symbol's members, filtering out unwanted elements such as synthetic ones. This view is most efficiently accessed through its iterator() method.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary

Modifier and TypeField and Description
private final Scope
Inherited from java.util.AbstractList:
modCount

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Symbol
get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.

public Iterator<Symbol>
iterator()

Overrides java.util.AbstractList.iterator.

Implements java.util.List.iterator, java.util.Collection.iterator.

Returns an iterator over the elements in this list in proper sequence.

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.

private static boolean
unwanted(Symbol s)

Tests whether this is a symbol that should never be seen by clients, such as a synthetic class.

Inherited from java.util.AbstractList:
addaddaddAllclearequalshashCodeindexOflastIndexOflistIteratorlistIteratorremoveremoveRangesetsubList

Field Detail

scopeback to summary
private final Scope scope

Constructor Detail

FilteredMemberListback to summary
public FilteredMemberList(Scope scope)

Method Detail

getback to summary
public Symbol get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.AbstractList.get.

Returns the element at the specified position in this list.

iteratorback to summary
public Iterator<Symbol> iterator()

Overrides java.util.AbstractList.iterator.

Implements java.util.List.iterator, java.util.Collection.iterator.

Doc from java.util.AbstractList.iterator.

Returns an iterator over the elements in this list in proper sequence.

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

unwantedback to summary
private static boolean unwanted(Symbol s)

Tests whether this is a symbol that should never be seen by clients, such as a synthetic class. Returns true for null.