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

E13403-04

oracle.javatools.parser.java.v2.util
Class BindingContext

java.lang.Object
  extended by oracle.javatools.parser.java.v2.util.BindingContext

public class BindingContext
extends java.lang.Object


Constructor Summary
BindingContext(JavaProvider provider)
           
BindingContext(JavaProvider provider, JavaIsGeneric sourceContext, JavaType targetContext)
           
BindingContext(JavaProvider provider, JavaType targetContext)
           
 
Method Summary
 boolean appendDescription(JavaHasType hasType, boolean simplified, java.lang.StringBuffer buffer)
          Appends a simplified description of a type bound in this context to buffer.
 boolean appendDescription(JavaMethod method, boolean simplified, java.lang.String unresolvedPrefix, java.lang.String unresolvedSuffix, java.lang.StringBuffer buffer, java.lang.StringBuffer erased)
          Appends a simplified description of a method declaration bound in this context to a buffer.
 JavaType bind(JavaType type)
          Binds a type in this context.
 JavaProvider getProvider()
           
 java.lang.String getSimplifiedDescription(JavaHasType hasType)
          Gets a simplified description of a type bound in this context.
 java.lang.String getSimplifiedDescription(JavaMethod method)
          Gets a simplified description of a method declaration bound in this context.
 JavaMember getSourceContext()
           
 JavaType getTargetContext()
           
 boolean isRaw()
           
 void setContext(JavaIsGeneric sourceContext, JavaType targetContext)
           
 void setSourceContext(JavaIsGeneric sourceContext)
           
 void setTargetContext(JavaType targetContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingContext

public BindingContext(JavaProvider provider)

BindingContext

public BindingContext(JavaProvider provider,
                      JavaType targetContext)

BindingContext

public BindingContext(JavaProvider provider,
                      JavaIsGeneric sourceContext,
                      JavaType targetContext)
Method Detail

getProvider

public JavaProvider getProvider()

setContext

public void setContext(JavaIsGeneric sourceContext,
                       JavaType targetContext)

setTargetContext

public void setTargetContext(JavaType targetContext)

setSourceContext

public void setSourceContext(JavaIsGeneric sourceContext)

getSourceContext

public JavaMember getSourceContext()

getTargetContext

public JavaType getTargetContext()

bind

public JavaType bind(JavaType type)
Binds a type in this context.

Parameters:
type - the type to bind.

isRaw

public boolean isRaw()

getSimplifiedDescription

public java.lang.String getSimplifiedDescription(JavaMethod method)
Gets a simplified description of a method declaration bound in this context. Typically, this is the method declaration without the return type and with the qualified name of types replaced by simple names.

Parameters:
method - the method to bind and describe.
Returns:
true if all types resolve.

appendDescription

public boolean appendDescription(JavaMethod method,
                                 boolean simplified,
                                 java.lang.String unresolvedPrefix,
                                 java.lang.String unresolvedSuffix,
                                 java.lang.StringBuffer buffer,
                                 java.lang.StringBuffer erased)
Appends a simplified description of a method declaration bound in this context to a buffer. Typically, this is the method declaration without the return type and with the qualified name of types replaced by simple names.

Parameters:
method - the method to bind and describe.
simplified -
buffer - the buffer to which to append.
erased -
Returns:
true if all types resolve.

getSimplifiedDescription

public java.lang.String getSimplifiedDescription(JavaHasType hasType)
Gets a simplified description of a type bound in this context. Typically, this is the full type description, except that qualified names are replaced with simple names.

Parameters:
hasType - a JavaHasType for the type to bind and describe.

appendDescription

public boolean appendDescription(JavaHasType hasType,
                                 boolean simplified,
                                 java.lang.StringBuffer buffer)
Appends a simplified description of a type bound in this context to buffer. Typically, this is the full type description, except that qualified names are replaced with simple names.

Parameters:
hasType - a JavaHasType for the type to bind and describe.
simplified -
buffer - the buffer to which to append.
Returns:
true if the type resolves.

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

E13403-04

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