public class CompilerContext extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CompilerContext.ContainsIndex |
| 构造器和说明 |
|---|
CompilerContext(CompilerEnvironment compilerEnvironment) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
containsWithCurrent(String target)
当前栈中是否存在该元素,如果存在返回位置
|
CompilerContext.ContainsIndex |
containsWithTree(String target)
当前栈中是否存在该元素,如果存在返回位置
|
CompilerContext |
createSegregate() |
void |
dropFrame() |
int |
findImport(String importResource) |
<T extends Inst> |
findInstCompilerByInst(T instObject) |
<T extends Inst> |
findInstCompilerByInst(T instObject,
Class<T> instClass) |
InputStream |
findResource(String resourceName) |
int |
getDepth()
当前深度
|
void |
newFrame() |
int |
push(String target)
将 name 压入栈,并返回在栈中的位置
|
void |
putImport(String importResource,
int address) |
public CompilerContext(CompilerEnvironment compilerEnvironment)
public InputStream findResource(String resourceName) throws IOException
IOExceptionpublic <T extends Inst> InstCompilerExecutor findInstCompilerByInst(T instObject)
public <T extends Inst> InstCompilerExecutor findInstCompilerByInst(T instObject, Class<T> instClass)
public int findImport(String importResource)
public void putImport(String importResource, int address)
public void newFrame()
public void dropFrame()
public int containsWithCurrent(String target)
public CompilerContext.ContainsIndex containsWithTree(String target)
public int push(String target)
public int getDepth()
public CompilerContext createSegregate()
Copyright © 2020. All rights reserved.