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

E13403-03

oracle.javatools.parser.java.v2.common
Class QuickUnresolvedType

java.lang.Object
  extended by oracle.javatools.parser.java.v2.common.QuickUnresolvedType
All Implemented Interfaces:
UnresolvedType

public class QuickUnresolvedType
extends java.lang.Object
implements UnresolvedType

Basic implementation of the UnresolvedType interface.


Field Summary
static UnresolvedType EMPTY_UNRESOLVED_TYPE
          An unresolved type that returns empty strings.
 
Method Summary
static QuickUnresolvedType createUnresolvedType(JavaType type)
          Creates an UnresolvedType implementation that is based on a "live" resolved type.
static QuickUnresolvedType createUnresolvedType(java.lang.String qualified)
          Creates the simplest UnresolvedType implementation.
 java.lang.String getSimplifiedName()
          Converts the search string to source format and then attempts to simplify it as much as possible before returning.
 java.lang.String toString()
          Converts the search string to source format and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_UNRESOLVED_TYPE

public static final UnresolvedType EMPTY_UNRESOLVED_TYPE
An unresolved type that returns empty strings.

Method Detail

createUnresolvedType

public static QuickUnresolvedType createUnresolvedType(java.lang.String qualified)
Creates the simplest UnresolvedType implementation.


createUnresolvedType

public static QuickUnresolvedType createUnresolvedType(JavaType type)
Creates an UnresolvedType implementation that is based on a "live" resolved type.


getSimplifiedName

public java.lang.String getSimplifiedName()
Description copied from interface: UnresolvedType
Converts the search string to source format and then attempts to simplify it as much as possible before returning. For example, if the search string is "junit.framework.Assert", then this will return "Assert".

Specified by:
getSimplifiedName in interface UnresolvedType
Returns:
A simplified version of the search string in source format, empty if not available. Always non-null.

toString

public java.lang.String toString()
Description copied from interface: UnresolvedType
Converts the search string to source format and returns it. For example, if this is a type reference in a class file and the search string is "java/lang/Map$Entry", this will return "java.lang.Map.Entry".

Specified by:
toString in interface UnresolvedType
Overrides:
toString in class java.lang.Object
Returns:
A simplified version of the search string in source format, empty if not available. Always non-null.

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

E13403-03

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