Package net.hydromatic.morel.eval
Class Files.Directory
- All Implemented Interfaces:
Iterable<File>,Collection<File>,List<File>,SequencedCollection<File>,File,TypedValue
- Enclosing class:
Files
File that is a directory.
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscoverField(TypeSystem typeSystem, String fieldName) Tries to expand the type to include the given field name.<V> VfieldValueAs(int fieldIndex, Class<V> clazz) Returns the value of a field, identified by ordinal, cast as a particular type.<V> VfieldValueAs(String fieldName, Class<V> clazz) Returns the value of a field, identified by name, cast as a particular type.get(int index) intsize()typeKey()Key from which the type of this value can be constructed.<V> VReturns the value cast as a particular type.Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
ioFile
-
entries
-
-
Constructor Details
-
Directory
Directory(File file)
-
-
Method Details
-
typeKey
Description copied from interface:TypedValueKey from which the type of this value can be constructed.- Specified by:
typeKeyin interfaceTypedValue
-
discoverField
Description copied from interface:TypedValueTries to expand the type to include the given field name.Returns this value or an expanded value.
- Specified by:
discoverFieldin interfaceFile- Specified by:
discoverFieldin interfaceTypedValue
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<File>- Specified by:
sizein interfaceList<File>- Specified by:
sizein classAbstractCollection<File>
-
valueAs
Description copied from interface:TypedValueReturns the value cast as a particular type.- Specified by:
valueAsin interfaceTypedValue
-
fieldValueAs
Description copied from interface:TypedValueReturns the value of a field, identified by name, cast as a particular type.- Specified by:
fieldValueAsin interfaceTypedValue
-
fieldValueAs
Description copied from interface:TypedValueReturns the value of a field, identified by ordinal, cast as a particular type.- Specified by:
fieldValueAsin interfaceTypedValue
-