|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjif.ast.JifInstantiator
public class JifInstantiator
This class contains a number of static utility methods to help instantiate labels, principals and types. Instantiation includes:
| Method Summary | |
|---|---|
static Label |
instantiate(Label L,
JifContext A,
AccessPath receiverPath,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
Perform instantiation on the label L |
static Label |
instantiate(Label L,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
Perform instantiation on the label L |
static Label |
instantiate(Label L,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
Perform instantiation on the label L |
static Principal |
instantiate(Principal p,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
Perform instantiation on the principal p |
static polyglot.types.Type |
instantiate(polyglot.types.Type t,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
Perform instantiation on the type t |
static polyglot.types.Type |
instantiate(polyglot.types.Type t,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
Perform instantiation on the type t |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Label instantiate(Label L,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
throws polyglot.types.SemanticException
L - the Label to substituteA - the context of the caller of the methodreceiverExpr - the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expression
polyglot.types.SemanticException
public static Label instantiate(Label L,
JifContext A,
AccessPath receiverPath,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
L - the Label to substituteA - the context of the caller of the methodreceiverPath - the access path of the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expression
public static Label instantiate(Label L,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
throws polyglot.types.SemanticException
L - the Label to substituteA - the context of the caller of the methodreceiverExpr - the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expressionformalArgLabels - List of ArgLabels, the labels of the formal
arguments of the procedure being calledactualArgLabels - List of Labels, the labels of the actuals
arguments of the procedure being calledactualArgExprs - List of Exprs, the actual arguments.actualParamLabels - List of Labels, the label of the evaluation of
the actual parameters. These are only really needed for static
methods (including constructors), where the actual parameters
need to be evaluated at runtime.
polyglot.types.SemanticException
public static Principal instantiate(Principal p,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
throws polyglot.types.SemanticException
p - the principal to instantiateA - the context of the caller of the methodreceiverExpr - the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expressionformalArgLabels - List of ArgLabels, the labels of the formal
arguments of the procedure being calledactualArgExprs - List of Exprs, the actual arguments.actualParamLabels - List of Labels, the label of the evaluation of
the actual parameters. These are only really needed for static
methods (including constructors), where the actual parameters
need to be evaluated at runtime.
polyglot.types.SemanticException
public static polyglot.types.Type instantiate(polyglot.types.Type t,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl,
java.util.List formalArgLabels,
java.util.List actualArgLabels,
java.util.List actualArgExprs,
java.util.List actualParamLabels)
throws polyglot.types.SemanticException
t - the Type to substituteA - the context of the caller of the methodreceiverExpr - the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expressionformalArgLabels - List of ArgLabels, the labels of the formal
arguments of the procedure being calledactualArgLabels - List of Labels, the labels of the actuals
arguments of the procedure being calledactualArgExprs - List of Exprs, the actual arguments.actualParamLabels - List of Labels, the label of the evaluation of
the actual parameters. These are only really needed for static
methods (including constructors), where the actual parameters
need to be evaluated at runtime.
polyglot.types.SemanticException
public static polyglot.types.Type instantiate(polyglot.types.Type t,
JifContext A,
polyglot.ast.Expr receiverExpr,
polyglot.types.ReferenceType receiverType,
Label receiverLbl)
throws polyglot.types.SemanticException
t - the Type to substituteA - the context of the caller of the methodreceiverExpr - the receiver expression, e.g., "e" in "e.m()".receiverType - the type of the receiverreceiverLbl - the label of the receiver expression
polyglot.types.SemanticException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||