|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeResolver
The TreeResolver provides a facility for resolving type and declaration references on Trees. Methods are provided for resolving individual Tree objects. Other methods are provided for resolving an entire FileT.
The TreeResolver may need to acquire resource(s) as it performs resolution. Callers should be warned that TreeResolver operations may therefore block unless the underlying resource has already been acquired.
There is one special case where a Tree resolves to a valid type and a valid declaration that "seem" to not match, namely NewClassExpressionT. The NewClassExpressionT will be resolved to a type which is the type of the class being created. However, the NewClassExpressionT will also resolve to a constructor declaration which, as you may recall, have no return type.
Method Summary | |
---|---|
Declaration |
getResolvedDeclaration(Tree tree) Resolves this tree into a declaration reference. |
TypeD |
getResolvedType(Tree tree) Resolves this tree into a type reference. |
Method Detail |
---|
Declaration getResolvedDeclaration(Tree tree)
java.lang.UnsupportedOperationException
- if this tree does not resolve to a declaration. Example: assert.TypeD getResolvedType(Tree tree)
java.lang.UnsupportedOperationException
- if this tree does not resolve to a type. Example: assert.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |