public class

NewInstanceExpression

extends NaryExpression
java.lang.Object
   ↳ sun.tools.tree.Node
     ↳ sun.tools.tree.Expression
       ↳ sun.tools.tree.UnaryExpression
         ↳ sun.tools.tree.NaryExpression
           ↳ sun.tools.tree.NewInstanceExpression

Class Overview

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
[Expand]
Inherited Fields
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
NewInstanceExpression(long where, Expression right, Expression[] args)
Constructor
NewInstanceExpression(long where, Expression right, Expression[] args, Expression outerArg, ClassDefinition body)
Public Methods
Vset check(Environment env, Context ctx, Vset vset, Hashtable exp)
Check void expression
Vset checkValue(Environment env, Context ctx, Vset vset, Hashtable exp)
Check expression type
void code(Environment env, Context ctx, Assembler asm)
Code
void codeValue(Environment env, Context ctx, Assembler asm)
Expression copyInline(Context ctx)
Create a copy of the expression for method inlining
int costInline(int thresh, Environment env, Context ctx)
The cost of inlining this expression
Expression getOuterArg()
From the "new" in an expression of the form outer.new InnerCls(...), return the "outer" expression, or null if there is none.
Expression inline(Environment env, Context ctx)
Inline
Expression inlineValue(Environment env, Context ctx)
static Expression[] insertOuterLink(Environment env, Context ctx, long where, ClassDefinition def, Expression outerArg, Expression[] args)
Given a list of arguments for a constructor, return a possibly modified list which includes the hidden argument which initializes the uplevel self pointer.
Expression order()
Order the expression based on precedence
[Expand]
Inherited Methods
From class sun.tools.tree.NaryExpression
From class sun.tools.tree.UnaryExpression
From class sun.tools.tree.Expression
From class sun.tools.tree.Node
From class java.lang.Object

Public Constructors

public NewInstanceExpression (long where, Expression right, Expression[] args)

Constructor

public NewInstanceExpression (long where, Expression right, Expression[] args, Expression outerArg, ClassDefinition body)

Public Methods

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

Check void expression

public Vset checkValue (Environment env, Context ctx, Vset vset, Hashtable exp)

Check expression type

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

Code

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

public Expression copyInline (Context ctx)

Create a copy of the expression for method inlining

public int costInline (int thresh, Environment env, Context ctx)

The cost of inlining this expression

public Expression getOuterArg ()

From the "new" in an expression of the form outer.new InnerCls(...), return the "outer" expression, or null if there is none.

public Expression inline (Environment env, Context ctx)

Inline

public Expression inlineValue (Environment env, Context ctx)

public static Expression[] insertOuterLink (Environment env, Context ctx, long where, ClassDefinition def, Expression outerArg, Expression[] args)

Given a list of arguments for a constructor, return a possibly modified list which includes the hidden argument which initializes the uplevel self pointer.

public Expression order ()

Order the expression based on precedence