public class

SourceMember

extends MemberDefinition
implements Constants
java.lang.Object
   ↳ sun.tools.java.MemberDefinition
     ↳ sun.tools.javac.SourceMember

Class Overview

A Source Member WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Fields
public boolean resolved Resolve types in a field, after parsing.
[Expand]
Inherited Fields
From class sun.tools.java.MemberDefinition
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
SourceMember(long where, ClassDefinition clazz, String doc, int modifiers, Type type, Identifier name, Vector argNames, IdentifierToken[] exp, Node value)
Constructor
SourceMember(ClassDefinition innerClass)
Constructor for an inner class.
SourceMember(MemberDefinition f, ClassDefinition c, Environment env)
Constructor.
Public Methods
Vset check(Environment env, Context ctx, Vset vset)
Check a field.
void check(Environment env)
Check this field.
void code(Environment env, Assembler asm)
Generate code
void codeInit(Environment env, Context ctx, Assembler asm)
Vector getArguments()
Get arguments (a vector of LocalMember)
ClassDeclaration getDefiningClassDeclaration()
Get the class declaration in which the field is actually defined
ClassDeclaration[] getExceptions(Environment env)
Get exceptions
Object getInitialValue()
Get the initial value of the field
LocalMember getOuterThisArg()
Get outer instance link, or null if none.
Node getValue(Environment env)
Get the value of the field (or null if the value can't be determined)
boolean isInlineable(Environment env, boolean fromFinal)
void print(PrintStream out)
Print for debugging
boolean reportDeprecated(Environment env)
A source field never reports deprecation, since the compiler allows access to deprecated features that are being compiled in the same job.
void resolveTypeStructure(Environment env)
A stub.
void setExceptions(ClassDeclaration[] exp)
Set array of name-resolved exceptions directly, e.g., for access methods.
[Expand]
Inherited Methods
From class sun.tools.java.MemberDefinition
From class java.lang.Object

Fields

public boolean resolved

Resolve types in a field, after parsing.

See Also
  • ClassDefinition.resolveTypeStructure

Public Constructors

public SourceMember (long where, ClassDefinition clazz, String doc, int modifiers, Type type, Identifier name, Vector argNames, IdentifierToken[] exp, Node value)

Constructor

Parameters
argNames a vector of IdentifierToken

public SourceMember (ClassDefinition innerClass)

Constructor for an inner class.

public SourceMember (MemberDefinition f, ClassDefinition c, Environment env)

Constructor. Used only to generate an abstract copy of a method that a class inherits from an interface

Public Methods

public Vset check (Environment env, Context ctx, Vset vset)

Check a field.

Parameters
vset tells which uplevel variables are definitely assigned The vset is also used to track the initialization of blank finals by whichever fields which are relevant to them.
Throws
ClassNotFound

public void check (Environment env)

Check this field.

This is the method which requests checking. The real work is done by Vset check(Environment, Context, Vset).

Throws
ClassNotFound

public void code (Environment env, Assembler asm)

Generate code

Throws
ClassNotFound

public void codeInit (Environment env, Context ctx, Assembler asm)

Throws
ClassNotFound

public Vector getArguments ()

Get arguments (a vector of LocalMember)

public ClassDeclaration getDefiningClassDeclaration ()

Get the class declaration in which the field is actually defined

public ClassDeclaration[] getExceptions (Environment env)

Get exceptions

public Object getInitialValue ()

Get the initial value of the field

public LocalMember getOuterThisArg ()

Get outer instance link, or null if none.

public Node getValue (Environment env)

Get the value of the field (or null if the value can't be determined)

Throws
ClassNotFound

public boolean isInlineable (Environment env, boolean fromFinal)

Throws
ClassNotFound

public void print (PrintStream out)

Print for debugging

public boolean reportDeprecated (Environment env)

A source field never reports deprecation, since the compiler allows access to deprecated features that are being compiled in the same job.

public void resolveTypeStructure (Environment env)

A stub. Subclasses can do more checking.

public void setExceptions (ClassDeclaration[] exp)

Set array of name-resolved exceptions directly, e.g., for access methods.