Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.jdeveloper.java.legacy
Class Jot2Utils

java.lang.Object
  extended by oracle.jdeveloper.java.legacy.Jot2Utils


public class Jot2Utils
extends java.lang.Object

This class contains the legacy routines from oracle.jdeveloper.jot.Jot2Utils that was used for migrating client code from old JOT to new JOT.


Constructor Summary
Jot2Utils()
           

 

Method Summary
static SourceExpression addArgument(SourceMethodCallExpression methodCall, SourceExpression sibling, boolean isBefore, java.lang.String argument)
           
static java.util.Collection getDeclaredMethods(JavaClass cls, java.lang.String name)
           
static int[] getDimensions(java.lang.String declaration)
          Constructs a list of array dimensions.
static SourceExpressionStatement getEnclosingStatement(SourceExpression jExpr)
           
static SourceExpression[] getMethodCalls(SourceBlock jCodeBlock, java.lang.String name)
           
static java.util.Collection getMethods(JavaClass cls, java.lang.String name)
           
static java.lang.String getMinimumReferenceName(SourceFile jFile, java.lang.String qualifiedName)
           
static java.util.Collection getParameterTypes(JavaMethod jMethod)
           
static boolean isNull(SourceExpression expr)
           
static boolean isValidClassName(java.lang.String name)
          Returns true if name is a valid Java class name.
static boolean isValidIdentifier(java.lang.String name)
          Returns true if name is a valid Java identifier.

 

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

 

Constructor Detail

Jot2Utils

public Jot2Utils()

Method Detail

getMethods

public static java.util.Collection getMethods(JavaClass cls,
                                              java.lang.String name)

getDeclaredMethods

public static java.util.Collection getDeclaredMethods(JavaClass cls,
                                                      java.lang.String name)

getParameterTypes

public static java.util.Collection getParameterTypes(JavaMethod jMethod)

isNull

public static boolean isNull(SourceExpression expr)

getMinimumReferenceName

public static java.lang.String getMinimumReferenceName(SourceFile jFile,
                                                       java.lang.String qualifiedName)

getEnclosingStatement

public static SourceExpressionStatement getEnclosingStatement(SourceExpression jExpr)

getMethodCalls

public static SourceExpression[] getMethodCalls(SourceBlock jCodeBlock,
                                                java.lang.String name)

addArgument

public static SourceExpression addArgument(SourceMethodCallExpression methodCall,
                                           SourceExpression sibling,
                                           boolean isBefore,
                                           java.lang.String argument)

isValidClassName

public static boolean isValidClassName(java.lang.String name)
Returns true if name is a valid Java class name. A class name is a sequence of identifiers with interspersed '.' tokens.
Parameters:
name - a string.

isValidIdentifier

public static boolean isValidIdentifier(java.lang.String name)
Returns true if name is a valid Java identifier.
Parameters:
name - a string.

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.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


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