Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.common
Class GroovyParserUtil

java.lang.Object
  extended by oracle.jbo.common.GroovyParserUtil

public class GroovyParserUtil
extends java.lang.Object

Utility class to get parsed content of Groovy scripts


Constructor Summary
GroovyParserUtil(java.lang.String scriptStr)
          Create a new parser utility class, using supplied script String
 
Method Summary
 java.util.Set<java.lang.String> getAssignedUnboundVariables()
          Get the list of all variables which will go to Groovy's Binding at the time the script is run for the purpose of assignment.
 java.util.Set<java.lang.String> getClassesUsed()
          Gets the set of all classes which have methods called.
 java.util.Set<java.lang.String> getMethodsUsed()
          Gets the set of all methods which are called directly via the script.
 java.util.Set<java.lang.String> getUnboundVariables()
          Get the list of all variables which will go to Groovy's Binding at the time the script is run, with the exception of those which are lvalues in assignments (i.e., "lvalue = rvalue")
 java.util.Set<java.lang.String> getUnboundVariablesWithoutNullCheck()
          Get the list of all variables which will go to Groovy's Binding at the time the script is run, which are not guarded by a call to nvl().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyParserUtil

public GroovyParserUtil(java.lang.String scriptStr)
Create a new parser utility class, using supplied script String

Parameters:
scriptStr - The script to parse
Method Detail

getUnboundVariables

public java.util.Set<java.lang.String> getUnboundVariables()
Get the list of all variables which will go to Groovy's Binding at the time the script is run, with the exception of those which are lvalues in assignments (i.e., "lvalue = rvalue")

Returns:
a set of strings that are all unbound variables

getAssignedUnboundVariables

public java.util.Set<java.lang.String> getAssignedUnboundVariables()
Get the list of all variables which will go to Groovy's Binding at the time the script is run for the purpose of assignment. (i.e., "lvalue = rvalue"). Note that if you declare a variable locally, it won't go to the binding, and won't be listed here. (i.e., "String lvalue = rvalue")

Returns:
a set of strings that are all unbound variables which are set via "=" operator

getClassesUsed

public java.util.Set<java.lang.String> getClassesUsed()
Gets the set of all classes which have methods called.

Returns:
a set of strings that are all the classes who have methods used

getMethodsUsed

public java.util.Set<java.lang.String> getMethodsUsed()
Gets the set of all methods which are called directly via the script.

Returns:
a set a strings that are all the methods which are directly called by the script

getUnboundVariablesWithoutNullCheck

public java.util.Set<java.lang.String> getUnboundVariablesWithoutNullCheck()
Get the list of all variables which will go to Groovy's Binding at the time the script is run, which are not guarded by a call to nvl().

Returns:
a set of strings that are all unbound variables with null check

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.