org.eclipse.emf.java.util
Class JavaUtil
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JavaUtil
public JavaUtil()
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