|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.java.v2.internal.util.UsageHook oracle.javatools.parser.java.v2.util.Usages
public abstract class Usages
Tracks declarations and usages as a SourceFile is being compiled.
Constructor Summary | |
---|---|
Usages()
|
Method Summary | |
---|---|
void |
declareClass(SourceClass s)
Declares a class. |
void |
declareConstructor(SourceMethod s)
Declares a constructor. |
void |
declareEnumConstant(SourceEnumConstant s)
Declares an enum constant. |
void |
declareField(SourceFieldVariable s)
Declares a single field that is not a enum constant. |
void |
declareLocalVariable(SourceLocalVariable s)
Declares a single local variable, different from a parameter. |
void |
declareMethod(SourceMethod s)
Declares a method or a constructor. |
void |
declareParameter(SourceFormalParameter s)
Declares a formal parameter. |
void |
declareTypeParameter(SourceTypeParameter s)
Declares a type parameter, part of a generic declaration. |
void |
handleDeclare(oracle.javatools.parser.java.v2.internal.symbol.Sym sym)
For internal use only. |
void |
handleUsage(oracle.javatools.parser.java.v2.internal.symbol.Sym cookie,
JavaElement result)
For internal use only. |
static void |
processUsages(SourceFile file,
Usages usages)
Causes a special compile of this file that tracks declarations and usages. |
boolean |
shouldTraverse(SourceElement element)
True says "Yes, traverse (normally) the given SourceElement and its subtree as part of the compile". |
void |
useFieldInDocComment(SourceDocReference s,
JavaField field)
Usage of a field or enum constant in a doc comment. |
void |
useFieldInExpression(SourceExpression s,
JavaField field)
Usage of a field or enum constant in an expression. |
void |
useLocalVariableInExpression(SourceExpression s,
JavaLocalVariable local)
Usage of a local variable or formal parameter in an expression. |
void |
useMethodInDocComment(SourceDocReference s,
JavaMethod method)
Usage of a method or constructor in a doc comment. |
void |
useMethodInExpression(SourceInvokeExpression s,
JavaMethod method)
Usage of a method or constructor in an expression. |
void |
useParameterInDocComment(SourceDocReference s,
JavaLocalVariable parameter)
Usage of a local variable or formal parameter in an expression. |
void |
useParameterInExpression(SourceExpression s,
JavaLocalVariable parameter)
Usage of a local variable or formal parameter in an expression. |
void |
useTypeInAnnotation(SourceAnnotation s,
JavaType type)
Usage of a type in an annotation. |
void |
useTypeInClassExtends(SourceTypeReference s,
JavaType type)
Usage of a type as a proper supertype. |
void |
useTypeInCreator(SourceTypeReference s,
JavaType type)
Usage of a type in a creator expression. |
void |
useTypeInDocComment(SourceDocReference s,
JavaType type)
Usage of a type in a doc comment. |
void |
useTypeInExpression(SourceExpression s,
JavaType type)
Usage of a type in an expression that is not covered in any other category. |
void |
useTypeInFieldDecl(SourceTypeReference s,
JavaType type)
Usage of a type in a field declaration. |
void |
useTypeInInstanceof(SourceTypeReference s,
JavaType type)
Usage of a type in a field declaration. |
void |
useTypeInLocalVariableDecl(SourceTypeReference s,
JavaType type)
Usage of a type for a local variable. |
void |
useTypeInMiscellaneous(SourceTypeReference s,
JavaType type)
Usage of a type that doesn't fall into any other category. |
void |
useTypeInNarrowImport(SourceImport s,
JavaType type)
Usage of a type in a narrow import. |
void |
useTypeInParameter(SourceTypeReference s,
JavaType type)
Usage of a type as the type of a formal parameter. |
void |
useTypeInReturnType(SourceTypeReference s,
JavaType type)
Usage of a type as a return type of a method. |
void |
useTypeInThrows(SourceTypeReference s,
JavaType type)
Usage of a type as a declared exception for a method or constructor. |
void |
useTypeInTypecast(SourceTypeReference s,
JavaType type)
Usage of a type in a typecast expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Usages()
Method Detail |
---|
public static void processUsages(SourceFile file, Usages usages)
public boolean shouldTraverse(SourceElement element)
shouldTraverse
in class oracle.javatools.parser.java.v2.internal.util.UsageHook
public void declareClass(SourceClass s)
public void declareConstructor(SourceMethod s)
public void declareEnumConstant(SourceEnumConstant s)
public void declareField(SourceFieldVariable s)
public void declareLocalVariable(SourceLocalVariable s)
public void declareMethod(SourceMethod s)
public void declareParameter(SourceFormalParameter s)
public void declareTypeParameter(SourceTypeParameter s)
public void useFieldInDocComment(SourceDocReference s, JavaField field)
public void useFieldInExpression(SourceExpression s, JavaField field)
s
- Either a SourceDotExpression or a SourceSimpleNameExpression.public void useLocalVariableInExpression(SourceExpression s, JavaLocalVariable local)
s
- Either a SourceDotExpression or a SourceSimpleNameExpression.public void useMethodInDocComment(SourceDocReference s, JavaMethod method)
public void useMethodInExpression(SourceInvokeExpression s, JavaMethod method)
public void useParameterInDocComment(SourceDocReference s, JavaLocalVariable parameter)
public void useParameterInExpression(SourceExpression s, JavaLocalVariable parameter)
s
- Either a SourceDotExpression or a SourceSimpleNameExpression.public void useTypeInAnnotation(SourceAnnotation s, JavaType type)
public void useTypeInDocComment(SourceDocReference s, JavaType type)
public void useTypeInExpression(SourceExpression s, JavaType type)
s
- Either a SourceDotExpression or a SourceSimpleNameExpression.public void useTypeInClassExtends(SourceTypeReference s, JavaType type)
public void useTypeInFieldDecl(SourceTypeReference s, JavaType type)
public void useTypeInInstanceof(SourceTypeReference s, JavaType type)
public void useTypeInLocalVariableDecl(SourceTypeReference s, JavaType type)
public void useTypeInMiscellaneous(SourceTypeReference s, JavaType type)
public void useTypeInNarrowImport(SourceImport s, JavaType type)
public void useTypeInCreator(SourceTypeReference s, JavaType type)
public void useTypeInParameter(SourceTypeReference s, JavaType type)
public void useTypeInReturnType(SourceTypeReference s, JavaType type)
public void useTypeInThrows(SourceTypeReference s, JavaType type)
public void useTypeInTypecast(SourceTypeReference s, JavaType type)
public final void handleDeclare(oracle.javatools.parser.java.v2.internal.symbol.Sym sym)
handleDeclare
in class oracle.javatools.parser.java.v2.internal.util.UsageHook
public final void handleUsage(oracle.javatools.parser.java.v2.internal.symbol.Sym cookie, JavaElement result)
handleUsage
in class oracle.javatools.parser.java.v2.internal.util.UsageHook
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |