public class NonStaticGlobalVariable extends GlobalVariable
meta| 构造器和说明 |
|---|
NonStaticGlobalVariable(KernelParam owner,
Field meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
KernelParam |
getOwner() |
AClass |
getResultType() |
void |
loadToStack(KernelProgramBlock block)
Push current to a stack of specify block
|
getDeclaringClass, getMetaasArgument, field, getFormerType, getModifiers, getName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormerType, getModifiers, getNamepublic NonStaticGlobalVariable(KernelParam owner, Field meta)
var - gve - public KernelParam getOwner()
public AClass getResultType()
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.Copyright © 2015. All rights reserved.