public class TypeOracleUpdater extends Object
TypeOracle
. This class provides package-level access to a TypeOracle
that is under construction. New classes can be added at any time, but should never be removed.
This class's API is an implementation detail and should not be considered stable. It is subject
to change.Modifier and Type | Field and Description |
---|---|
protected TypeOracle |
typeOracle
The TypeOracle being updated.
|
Constructor and Description |
---|
TypeOracleUpdater(TypeOracle typeOracle) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAnnotations(JPackage pkg,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations) |
protected void |
addAnnotations(JRealClassType type,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations) |
protected void |
addImplementedInterface(JRealClassType type,
JClassType intf) |
protected void |
addModifierBits(JAbstractMethod method,
int modifierBits) |
protected void |
addModifierBits(JField jfield,
int modifierBits) |
protected void |
addThrows(JAbstractMethod method,
JClassType exception) |
protected void |
finish() |
protected JAnnotationMethod |
newAnnotationMethod(JRealClassType enclosingType,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
JTypeParameter[] jtypeParameters,
Object defaultValue) |
protected JAnnotationType |
newAnnotationType(JPackage pkg,
String enclosingTypeName,
String className) |
protected JConstructor |
newConstructor(JRealClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
JTypeParameter[] typeParams) |
protected JEnumConstant |
newEnumConstant(JRealClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
int ordinal) |
protected JEnumType |
newEnumType(JPackage pkg,
String enclosingTypeName,
String className) |
protected JField |
newField(JRealClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations) |
protected JMethod |
newMethod(JClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
JTypeParameter[] typeParams) |
protected void |
newParameter(JAbstractMethod method,
JType argType,
String argName,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
boolean argNamesAreReal) |
protected JRealClassType |
newRealClassType(JPackage pkg,
String enclosingTypeName,
String className,
boolean isIntf) |
protected void |
setEnclosingType(JRealClassType type,
JClassType enclosingType) |
protected void |
setFieldType(JField jfield,
JType fieldType) |
protected void |
setReturnType(JAbstractMethod method,
JType returnType) |
protected void |
setSuperClass(JRealClassType type,
JClassType superType) |
protected void |
setVarArgs(JAbstractMethod method) |
protected final TypeOracle typeOracle
public TypeOracleUpdater(TypeOracle typeOracle)
protected void addAnnotations(JPackage pkg, Map<Class<? extends Annotation>,Annotation> declaredAnnotations)
protected void addAnnotations(JRealClassType type, Map<Class<? extends Annotation>,Annotation> declaredAnnotations)
protected void addImplementedInterface(JRealClassType type, JClassType intf)
protected void addModifierBits(JAbstractMethod method, int modifierBits)
protected void addModifierBits(JField jfield, int modifierBits)
protected void addThrows(JAbstractMethod method, JClassType exception)
protected void finish()
protected JAnnotationMethod newAnnotationMethod(JRealClassType enclosingType, String name, Map<Class<? extends Annotation>,Annotation> declaredAnnotations, JTypeParameter[] jtypeParameters, Object defaultValue)
protected JAnnotationType newAnnotationType(JPackage pkg, String enclosingTypeName, String className)
protected JConstructor newConstructor(JRealClassType type, String name, Map<Class<? extends Annotation>,Annotation> declaredAnnotations, JTypeParameter[] typeParams)
protected JEnumConstant newEnumConstant(JRealClassType type, String name, Map<Class<? extends Annotation>,Annotation> declaredAnnotations, int ordinal)
protected JEnumType newEnumType(JPackage pkg, String enclosingTypeName, String className)
protected JField newField(JRealClassType type, String name, Map<Class<? extends Annotation>,Annotation> declaredAnnotations)
protected JMethod newMethod(JClassType type, String name, Map<Class<? extends Annotation>,Annotation> declaredAnnotations, JTypeParameter[] typeParams)
protected void newParameter(JAbstractMethod method, JType argType, String argName, Map<Class<? extends Annotation>,Annotation> declaredAnnotations, boolean argNamesAreReal)
protected JRealClassType newRealClassType(JPackage pkg, String enclosingTypeName, String className, boolean isIntf)
protected void setEnclosingType(JRealClassType type, JClassType enclosingType)
protected void setReturnType(JAbstractMethod method, JType returnType)
protected void setSuperClass(JRealClassType type, JClassType superType)
protected void setVarArgs(JAbstractMethod method)
Copyright © 2018. All rights reserved.