api / org.gradle.tooling.model.eclipse / AccessRule

AccessRule

interface AccessRule

Access rule associated with an Eclipse classpath entry.

See Also
<a href="http://help.eclipse.org/mars/topic/org.eclipse.jdt.doc.isv/reference/api/org/eclipse/jdt/core/IAccessRule.html">IAccessRule Javadoc</a>

Since
3.0

Functions

getKind

abstract fun getKind(): Int

Returns the encoded type of the access rule. The meaning of the values:

  • 0: the rule defines accessible paths
  • 1: the rule defines inaccessible paths
  • 2: the rule defines discouraged paths

getPattern

abstract fun getPattern(): String

Returns the file pattern of this access rule.