oracle.jdeveloper.jot
Class JotUtils
java.lang.Object
oracle.jdeveloper.jot.JotUtils
- public final class JotUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMethodCalls
public static JotStatementExpression[] getMethodCalls(JotCodeBlock jCodeBlock,
java.lang.String name)
getAssignments
public static JotAssignment[] getAssignments(JotCodeBlock jCodeBlock)
getVariableDeclarations
public static JotLocalVariableDeclaration[] getVariableDeclarations(JotCodeBlock jCodeBlock)
getDimensions
public static final int[] getDimensions(java.lang.String declaration)
- Constructs a list of array dimensions.
- Parameters:
declaration
- an array declaration.
- Returns:
- an array containing the dimension parameters extracted from
declaration
.
Blank dimensions, such as String[]
, yield a zero.
An array declaration such as String[2][3][]
would produce an
array containing {2, 3, 0}
. Non literal expressions such as
method calls, object references, etc. will result in a zero dimension.
getEnclosingStatement
public static JotExpressionStatement getEnclosingStatement(JotExpression jExpr)
isNull
public static boolean isNull(JotExpression jExpr)
Copyright ©1997, 2003, Oracle. All rights reserved.