Access Resource in custom JQL function

Can we access Resource in custom JQL function, to get the information from underlying DB in JIRA?