public class ThisVariable extends ImplicitVariable
this keyword variable.| 构造器和说明 |
|---|
ThisVariable(AClass aclass) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
availableFor(AbstractOperator operator)
check the variable is available for current operator. for example
int i = 10;
if(i % 2 == 0) {
int j = 100;
System.out.println(i);
} else {
System.out.println(j);
}
The preceding code will be get an error cause by variable j is not
available for the second method call operator.
|
VarMeta |
getMeta()
Get meta
|
AClass |
getResultType() |
void |
loadToStack(KernelProgramBlock block)
Push current to a stack of specify block
|
asArgument, field, getFormerType, getModifiers, getName, toStringpublic ThisVariable(AClass aclass)
public void loadToStack(KernelProgramBlock block)
PushStackablepublic boolean availableFor(AbstractOperator operator)
IVariable
int i = 10;
if(i % 2 == 0) {
int j = 100;
System.out.println(i);
} else {
System.out.println(j);
}
The preceding code will be get an error cause by variable j is not
available for the second method call operator.public AClass getResultType()
Copyright © 2015. All rights reserved.