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()
ParsingContext
getProgramBuilder
in interface ParsingContext
public void generateCodeAll(ParsingContext parsingContext)
ParsingContext
generateCodeAll
in interface ParsingContext
public NullParsingContext createSubContext()
ParsingContext
createSubContext
in interface ParsingContext
public void staticSymbol(String name, Object object)
staticSymbol
in interface ParsingContext
public Instruction getLast()
getLast
in interface ParsingContext
public void generateCode(ParsingContext.Location[] loc, Instruction... args)
ParsingContext
generateCode
in interface ParsingContext
public void generateCode(ParsingContext.Location loc, Instruction instr)
generateCode
in interface ParsingContext
Copyright © 2018 SPF4J. All rights reserved.