| Package | Description |
|---|---|
| sun.rmi.rmic | |
| sun.rmi.rmic.iiop | |
| sun.tools.java | |
| sun.tools.javac | |
| sun.tools.tree |
| Modifier and Type | Method and Description |
|---|---|
void |
Main.compileAllClasses(BatchEnvironment env) |
boolean |
Main.compileClass(ClassDeclaration c,
java.io.ByteArrayOutputStream buf,
BatchEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
Type.classNotFound(boolean quiet,
ContextStack stack,
ClassNotFound e)
Report a ClassNotFoundException thru the compiler environment.
|
protected static void |
Type.classNotFound(ContextStack stack,
ClassNotFound e)
Report a ClassNotFoundException thru the compiler environment.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector |
CompoundType.addAllMethods(ClassDefinition current,
java.util.Vector directMethods,
boolean noMultiInheritedMethods,
boolean quiet,
ContextStack stack) |
protected java.util.Vector |
CompoundType.addNonRemoteInterfaces(java.util.Vector list,
ContextStack stack) |
protected java.util.Vector |
CompoundType.addRemoteInterfaces(java.util.Vector list,
boolean allowNonConforming,
ContextStack stack) |
protected boolean |
CompoundType.isConformingRemoteMethod(CompoundType.Method method,
boolean quiet) |
protected boolean |
CompoundType.isIDLEntityException(Type type,
CompoundType.Method method,
boolean quiet) |
protected java.util.Vector |
CompoundType.updateParentClassMethods(ClassDefinition current,
java.util.Vector currentMethods,
boolean quiet,
ContextStack stack) |
| Modifier and Type | Class and Description |
|---|---|
class |
AmbiguousClass
This exception is thrown when an unqualified class name
is used that can be resolved in more than one way.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ClassDefinition.basicCheck(Environment env) |
protected void |
BinaryClass.basicCheck(Environment env)
Ready a BinaryClass for further checking.
|
boolean |
ClassDefinition.canAccess(Environment env,
ClassDeclaration c)
Check if another class can be accessed from within the body of this class.
|
boolean |
ClassDefinition.canAccess(Environment env,
MemberDefinition f)
Check if a field can be accessed from a class
|
void |
MemberDefinition.check(Environment env)
Request a check of the field definition.
|
void |
ClassDefinition.check(Environment env)
Check this class.
|
Vset |
MemberDefinition.check(Environment env,
Context ctx,
Vset vset)
Really check the field definition.
|
Vset |
ClassDefinition.checkLocalClass(Environment env,
Context ctx,
Vset vset,
ClassDefinition sup,
Expression[] args,
Type[] argTypes) |
void |
MemberDefinition.code(Environment env,
Assembler asm)
Generate code
|
void |
MemberDefinition.codeInit(Environment env,
Context ctx,
Assembler asm) |
int |
ClassDefinition.diagnoseMismatch(Environment env,
Identifier nm,
Type[] argTypes,
int start,
Type[] margTypeResult)
Given the fact that this class has no method "nm" matching "argTypes",
find out if the mismatch can be blamed on a particular actual argument
which disagrees with all of the overloadings.
|
boolean |
Environment.explicitCast(Type from,
Type to)
Return true if an explicit cast from this type to
the given type is allowed.
|
boolean |
ClassDefinition.extendsCanAccess(Environment env,
ClassDeclaration c)
Check if another class can be accessed from the 'extends' or 'implements'
clause of this class.
|
MemberDefinition |
ClassDefinition.findAnyMethod(Environment env,
Identifier nm)
Find any method with a given name.
|
MemberDefinition |
ClassDefinition.findMethod(Environment env,
Identifier nm,
Type t)
Find a method, ie: exact match in this class or any of the super
classes.
|
ClassDefinition |
ClassDeclaration.getClassDefinition(Environment env)
Get the definition of this class, if the class is not
yet defined, load the definition.
|
ClassDefinition |
Environment.getClassDefinition(Identifier nm)
Return a class definition given a fully qualified class name.
|
ClassDefinition |
Environment.getClassDefinition(Type t)
Return a class definition given a type.
|
ClassDefinition |
ClassDeclaration.getClassDefinitionNoCheck(Environment env)
Get the definition of this class, if the class is not
yet defined, load the definition.
|
MemberDefinition |
ClassDefinition.getInnerClass(Environment env,
Identifier nm)
Get an inner class.
|
ClassDefinition |
Environment.getQualifiedClassDefinition(long where,
Identifier nm,
ClassDefinition ctxClass,
boolean isExtends)
Like 'getClassDefinition(env)', but check access on each component.
|
Node |
MemberDefinition.getValue(Environment env)
Get the field's final value (may return null)
|
MemberDefinition |
ClassDefinition.getVariable(Environment env,
Identifier nm,
ClassDefinition source)
Get a field from this class.
|
boolean |
ClassDefinition.implementedBy(Environment env,
ClassDeclaration c)
Check if this class is implemented by another class
|
boolean |
Environment.implicitCast(Type from,
Type to)
Return true if an implicit cast from this type to
the given type is allowed.
|
boolean |
Environment.isApplicable(MemberDefinition m,
Type[] args)
Returns true if the given method is applicable to the given arguments
|
boolean |
MemberDefinition.isInlineable(Environment env,
boolean fromFinal) |
boolean |
Environment.isMoreSpecific(MemberDefinition best,
MemberDefinition other)
Returns true if "best" is in every argument at least as good as "other"
|
boolean |
Environment.isMoreSpecific(Type from,
Type to)
Returns true if "from" is a more specific type than "to"
|
MemberDefinition |
ClassDefinition.matchAnonConstructor(Environment env,
Identifier accessPackage,
Type[] argumentTypes)
A version of matchMethod to be used only for constructors
when we cannot pass in a sourceClass argument.
|
MemberDefinition |
ClassDefinition.matchMethod(Environment env,
ClassDefinition accessor,
Identifier methodName)
Lookup a method.
|
MemberDefinition |
ClassDefinition.matchMethod(Environment env,
ClassDefinition accessor,
Identifier methodName,
Type[] argumentTypes)
Lookup a method.
|
boolean |
ClassDefinition.permitInlinedAccess(Environment env,
ClassDeclaration c)
Check if a class is entitled to inline access to a class from
another class.
|
boolean |
ClassDefinition.permitInlinedAccess(Environment env,
MemberDefinition f)
Check if a class is entitled to inline access to a method from
another class.
|
boolean |
ClassDefinition.protectedAccess(Environment env,
MemberDefinition f,
Type accessorType)
We know the field is marked protected (and not public) and that
the field is visible (as per canAccess).
|
Identifier |
Imports.resolve(Environment env,
Identifier nm)
Lookup a class, given the current set of imports,
AmbiguousClass exception is thrown if the name can be
resolved in more than one way.
|
Identifier |
Environment.resolve(Identifier nm)
Resolve a class name, using only package and import directives.
|
boolean |
ClassDefinition.subClassOf(Environment env,
ClassDeclaration otherClass)
Check if this is a sub class of another class
|
boolean |
ClassDefinition.superClassOf(Environment env,
ClassDeclaration otherClass)
Check if this is a super class of another class
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SourceClass.basicCheck(Environment env)
Deprecated.
|
void |
SourceMember.check(Environment env)
Deprecated.
Check this field.
|
void |
SourceClass.check(Environment env)
Deprecated.
Check this class and all its fields.
|
Vset |
SourceMember.check(Environment env,
Context ctx,
Vset vset)
Deprecated.
Check a field.
|
Vset |
SourceClass.checkInsideClass(Environment env,
Context ctx,
Vset vset)
Deprecated.
Check a class which is inside a local class, but is not itself local.
|
Vset |
SourceClass.checkLocalClass(Environment env,
Context ctx,
Vset vset,
ClassDefinition sup,
Expression[] args,
Type[] argTypes)
Deprecated.
During the type-checking of an outer method body or initializer,
this routine is called to check a local class body
in the proper context.
|
void |
SourceMember.code(Environment env,
Assembler asm)
Deprecated.
Generate code
|
void |
SourceMember.codeInit(Environment env,
Context ctx,
Assembler asm)
Deprecated.
|
protected void |
SourceClass.compileClass(Environment env,
java.io.OutputStream out)
Deprecated.
|
Node |
SourceMember.getValue(Environment env)
Deprecated.
Get the value of the field (or null if the value can't be determined)
|
boolean |
SourceMember.isInlineable(Environment env,
boolean fromFinal)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
MemberDefinition |
Context.getApparentField(Environment env,
Identifier name)
Like getField, except that it skips over inherited fields.
|
MemberDefinition |
Context.getField(Environment env,
Identifier name)
Get either a local variable, or a field in a current class
|
Copyright © 2017. All Rights Reserved.