public final class NullParsingContext extends Object implements ParsingContext
ParsingContext.Location| Modifier and Type | Field and Description |
|---|---|
static NullParsingContext |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
NullParsingContext |
createSubContext()
clone this context
|
void |
generateCode(ParsingContext.Location[] loc,
Instruction... args)
generate instruction code with argument
|
void |
generateCode(ParsingContext.Location loc,
Instruction instr) |
void |
generateCodeAll(ParsingContext parsingContext)
Add code to this context
|
int |
getAddress()
return the current code address
|
Instruction |
getLast() |
ProgramBuilder |
getProgramBuilder()
get the code generated in this context
|
void |
staticSymbol(String name,
Object object) |
public static final NullParsingContext INSTANCE
public int getAddress()
getAddress in interface ParsingContext@Nullable public ProgramBuilder getProgramBuilder()
ParsingContextgetProgramBuilder in interface ParsingContextpublic void generateCodeAll(ParsingContext parsingContext)
ParsingContextgenerateCodeAll in interface ParsingContextpublic NullParsingContext createSubContext()
ParsingContextcreateSubContext in interface ParsingContextpublic void staticSymbol(String name, Object object)
staticSymbol in interface ParsingContextpublic Instruction getLast()
getLast in interface ParsingContextpublic void generateCode(ParsingContext.Location[] loc, Instruction... args)
ParsingContextgenerateCode in interface ParsingContextpublic void generateCode(ParsingContext.Location loc, Instruction instr)
generateCode in interface ParsingContextCopyright © 2018 SPF4J. All rights reserved.