Class TruffleFile.Attributes
java.lang.Object
com.oracle.truffle.api.TruffleFile.Attributes
- Enclosing class:
TruffleFile
A view over file's attributes values obtained by
getAttributes
.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(TruffleFile.AttributeDescriptor<T> descriptor) Returns the attribute value.
-
Method Details
-
get
Returns the attribute value.- Parameters:
descriptor
- the attribute to obtain value for- Returns:
- the attribute value, may return
null
if the filesystem doesn't support the attribute. - Throws:
IllegalArgumentException
- if the view was not created for the given attribute- Since:
- 19.0
-