Package org.kohsuke.accmod.impl
Class Restrictions
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<AccessRestriction>
-
- org.kohsuke.accmod.impl.Restrictions
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<AccessRestriction>
,Collection<AccessRestriction>
,List<AccessRestriction>
,RandomAccess
public class Restrictions extends ArrayList<AccessRestriction>
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description Restrictions(RestrictedElement target)
Restrictions(RestrictedElement target, Collection<? extends AccessRestriction> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
void
instantiated(Location loc, ErrorListener errorListener)
void
invoked(Location location, ErrorListener errorListener)
void
read(Location location, ErrorListener errorListener)
void
usedAsInterface(Location loc, ErrorListener errorListener)
void
usedAsSuperType(Location loc, ErrorListener errorListener)
void
written(Location location, ErrorListener errorListener)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
Restrictions
public Restrictions(RestrictedElement target, Collection<? extends AccessRestriction> c)
-
Restrictions
public Restrictions(RestrictedElement target)
-
-
Method Detail
-
usedAsSuperType
public void usedAsSuperType(Location loc, ErrorListener errorListener)
-
usedAsInterface
public void usedAsInterface(Location loc, ErrorListener errorListener)
-
instantiated
public void instantiated(Location loc, ErrorListener errorListener)
-
invoked
public void invoked(Location location, ErrorListener errorListener)
-
read
public void read(Location location, ErrorListener errorListener)
-
written
public void written(Location location, ErrorListener errorListener)
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<AccessRestriction>
- Specified by:
equals
in interfaceList<AccessRestriction>
- Overrides:
equals
in classArrayList<AccessRestriction>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<AccessRestriction>
- Specified by:
hashCode
in interfaceList<AccessRestriction>
- Overrides:
hashCode
in classArrayList<AccessRestriction>
-
-