Extension SDK 10.1.2


oracle.jdeveloper.jot
Class JotUtils

java.lang.Object
  extended byoracle.jdeveloper.jot.JotUtils


public final class JotUtils
extends java.lang.Object

Method Summary
static JotAssignment[] getAssignments(JotCodeBlock jCodeBlock)
static int[] getDimensions(java.lang.String declaration)
Constructs a list of array dimensions.
static JotExpressionStatement getEnclosingStatement(JotExpression jExpr)
static JotStatementExpression[] getMethodCalls(JotCodeBlock jCodeBlock, java.lang.String name)
static JotLocalVariableDeclaration[] getVariableDeclarations(JotCodeBlock jCodeBlock)
static boolean isNull(JotExpression jExpr)

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

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)

Extension SDK


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