Package groovy.transform
Annotation Type SourceURI
- 
 @Documented @Retention(SOURCE) @Target({LOCAL_VARIABLE,FIELD}) public @interface SourceURIVariable annotation used for getting the URI of the current script.The type of the variable annotated with @SourceURImust be assignment compatible withURI. It will be used to hold a URI object that references the source for the current script.By default the URI will be made absolute (which is to say it will have an authority) in the case where a relative path was used for the source of the script. If you want to leave relative URIs as relative, then set Example usage:allowRelativetotrue.@groovy.transform.SourceURIdef sourceURI assert sourceURI instanceof java.net.URI- Since:
- 2.3.0
 
- 
- 
Optional Element SummaryOptional Elements Modifier and Type Optional Element Description booleanallowRelative
 
-