Package gw.lang.ir.builder
Class IRBuilderContext
- java.lang.Object
-
- gw.lang.ir.builder.IRBuilderContext
-
public class IRBuilderContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private IRMethodBuilder_methodBuilderprivate java.util.Map<java.lang.String,IRSymbol>_symbols
-
Constructor Summary
Constructors Constructor Description IRBuilderContext(IRMethodBuilder methodBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRTypecurrentClassSuperType()IRTypecurrentReturnType()IRFieldDeclfindField(java.lang.String name)IRMethodStatementfindMethod(java.lang.String name, int numArgs)IRSymbolfindVar(java.lang.String name)IRSymbolgetOrCreateVar(java.lang.String name, IRType type)IRTypeowningType()IRSymboltempSymbol(IRType type)
-
-
-
Field Detail
-
_methodBuilder
private IRMethodBuilder _methodBuilder
-
_symbols
private java.util.Map<java.lang.String,IRSymbol> _symbols
-
-
Constructor Detail
-
IRBuilderContext
public IRBuilderContext(IRMethodBuilder methodBuilder)
-
-
Method Detail
-
findField
public IRFieldDecl findField(java.lang.String name)
-
findMethod
public IRMethodStatement findMethod(java.lang.String name, int numArgs)
-
owningType
public IRType owningType()
-
currentClassSuperType
public IRType currentClassSuperType()
-
currentReturnType
public IRType currentReturnType()
-
findVar
public IRSymbol findVar(java.lang.String name)
-
-