org.eclipse.emf.java.util
Class JavaUtil

java.lang.Object
  extended by org.eclipse.emf.java.util.JavaUtil

public class JavaUtil
extends java.lang.Object

This class contains some convenient static functions for working with Java objects.


Nested Class Summary
static class JavaUtil.StandAloneTest
           
 
Field Summary
static java.lang.String JAVA_PACKAGE_RESOURCE
           
static URI JAVA_PACKAGE_RESOURCE_URI
           
 
Constructor Summary
JavaUtil()
           
 
Method Summary
static JClass createJClassProxy(java.lang.Class<?> javaClass)
           
static JClass createJClassProxy(java.lang.String className)
           
static JClass createJClassProxy(URI javaSourceURI)
           
static URI createJClassProxyURI(java.lang.Class<?> javaClass)
           
static URI createJClassProxyURI(java.lang.String className)
           
static URI createJClassProxyURI(URI javaSourceURI)
           
static JPackage createJPackageProxy(java.lang.String packageName)
           
static URI createJPackageProxyURI(java.lang.String packageName)
           
static JVisibility getFlagVisibility(int flags)
           
static JVisibility getModifierVisibility(int modifiers)
           
static boolean isPrefixOf(java.lang.String name, java.lang.String fullName)
          Returns whether the name is a prefix of the fullName.
static java.lang.String[] separateTypeArgument(java.lang.String typeName)
          Separates the type argument from the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_PACKAGE_RESOURCE

public static final java.lang.String JAVA_PACKAGE_RESOURCE
See Also:
Constant Field Values

JAVA_PACKAGE_RESOURCE_URI

public static final URI JAVA_PACKAGE_RESOURCE_URI
Constructor Detail

JavaUtil

public JavaUtil()
Method Detail

createJPackageProxyURI

public static URI createJPackageProxyURI(java.lang.String packageName)

createJPackageProxy

public static JPackage createJPackageProxy(java.lang.String packageName)

createJClassProxyURI

public static URI createJClassProxyURI(java.lang.Class<?> javaClass)

createJClassProxy

public static JClass createJClassProxy(java.lang.Class<?> javaClass)

createJClassProxyURI

public static URI createJClassProxyURI(java.lang.String className)

createJClassProxy

public static JClass createJClassProxy(java.lang.String className)

createJClassProxyURI

public static URI createJClassProxyURI(URI javaSourceURI)

createJClassProxy

public static JClass createJClassProxy(URI javaSourceURI)

getFlagVisibility

public static JVisibility getFlagVisibility(int flags)

getModifierVisibility

public static JVisibility getModifierVisibility(int modifiers)

isPrefixOf

public static boolean isPrefixOf(java.lang.String name,
                                 java.lang.String fullName)
Returns whether the name is a prefix of the fullName.

Returns:
whether the name is a prefix of the fullName.

separateTypeArgument

public static java.lang.String[] separateTypeArgument(java.lang.String typeName)
Separates the type argument from the type. The first position of the returned array is always the raw type and the second is either the type argument without the outermost '<' and '>' or null.

Parameters:
typeName -
Returns:
a String array with length == 2

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.