|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jst.jsf.common.util.TypeUtil
public final class TypeUtil
Utility for handling IType's and type signatures Class is static and cannot be extended or instantiated.
Method Summary | |
---|---|
static boolean |
canNeverBeEqual(java.lang.String typeSig1,
java.lang.String typeSig2)
|
static java.lang.String |
getFullyQualifiedName(java.lang.String typeSignature)
|
static java.lang.String |
getSignature(org.eclipse.jdt.core.IType type)
|
static boolean |
isEnumMember(org.eclipse.jdt.core.IType type,
java.lang.String fieldName)
|
static boolean |
isEnumsCompareCompatible(java.lang.String typeSig1,
java.lang.String typeSig2)
|
static java.lang.String |
matchTypeParameterToArgument(org.eclipse.jdt.core.IType type,
java.lang.String typeParamSignature,
java.util.List<java.lang.String> typeArguments)
|
static java.lang.String |
resolveMethodSignature(org.eclipse.jdt.core.IType owner,
java.lang.String unresolvedSignature)
|
static org.eclipse.jdt.core.IType |
resolveType(org.eclipse.jdt.core.IJavaProject javaProject,
java.lang.String fullyResolvedTypeSignature)
Attempts to get a Java IType for a fully qualified signature. |
static java.lang.String |
resolveTypeSignature(org.eclipse.jdt.core.IType owningType,
java.lang.String typeSignature)
Fully equivalent to: #resolveTypeSignature(owningType, typeSignature, true) If resolved, type signature has generic type parameters erased (absent). |
static java.lang.String |
resolveTypeSignature(org.eclipse.jdt.core.IType owningType,
java.lang.String typeSignature,
boolean eraseTypeParameters)
Resolve typeSignature in the context of owningType. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String resolveTypeSignature(org.eclipse.jdt.core.IType owningType, java.lang.String typeSignature)
owningType
- typeSignature
-
public static java.lang.String resolveTypeSignature(org.eclipse.jdt.core.IType owningType, java.lang.String typeSignature, boolean eraseTypeParameters)
owningType
- typeSignature
- eraseTypeParameters
- if set to false, type parameters are resolved included
in the signature
public static java.lang.String getSignature(org.eclipse.jdt.core.IType type)
type
-
public static java.lang.String resolveMethodSignature(org.eclipse.jdt.core.IType owner, java.lang.String unresolvedSignature)
owner
- unresolvedSignature
-
public static java.lang.String getFullyQualifiedName(java.lang.String typeSignature)
typeSignature
-
public static org.eclipse.jdt.core.IType resolveType(org.eclipse.jdt.core.IJavaProject javaProject, java.lang.String fullyResolvedTypeSignature)
javaProject
- the project context inside which to resolve the typefullyResolvedTypeSignature
- a fully resolved type signature
public static java.lang.String matchTypeParameterToArgument(org.eclipse.jdt.core.IType type, java.lang.String typeParamSignature, java.util.List<java.lang.String> typeArguments)
type
- typeParamSignature
- typeArguments
-
public static boolean isEnumMember(org.eclipse.jdt.core.IType type, java.lang.String fieldName)
type
- fieldName
-
public static boolean isEnumsCompareCompatible(java.lang.String typeSig1, java.lang.String typeSig2)
typeSig1
- the type signature of the first enum. Must be non-null, fully resolved enum type.typeSig2
- the type signature of the second enum. Must be non-null, fully resolved enum type.
public static boolean canNeverBeEqual(java.lang.String typeSig1, java.lang.String typeSig2)
typeSig1
- the type signature of the first enum. Must be non-null, fully resolved enum type.typeSig2
- the type signature of the second enum. Must be non-null, fully resolved enum type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |