public class Registrar
extends java.lang.Object
Constructor and Description |
---|
Registrar(polyglot.frontend.ExtensionInfo extInfo) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<polyglot.ast.CodeNode> |
allCode() |
java.util.List<polyglot.ast.CodeNode> |
getAllOrderedStaticInitializers() |
java.util.Set<polyglot.types.ClassType> |
getClassesWithStaticInitializers() |
polyglot.ast.CodeDecl |
getCode(polyglot.types.ProcedureInstance pi) |
java.util.List<polyglot.ast.CodeNode> |
getInstanceInitializers(polyglot.types.ClassType container) |
java.util.List<polyglot.ast.CodeNode> |
getStaticInitializers(polyglot.types.ClassType container) |
boolean |
hasCode(polyglot.types.ProcedureInstance pi) |
static boolean |
isStartProc(polyglot.types.ProcedureInstance pi)
Is pi a starting point for the analysis?
|
int |
numRegisteredClasses() |
int |
numRegisteredProcedures() |
void |
registerConstructor(polyglot.ast.ConstructorDecl n) |
void |
registerFieldDecl(polyglot.ast.FieldDecl n) |
protected void |
registerInitializer(polyglot.ast.CodeNode n,
polyglot.types.InitializerInstance ii) |
void |
registerInitializer(polyglot.ast.Initializer n) |
void |
registerMethod(polyglot.ast.MethodDecl n) |
void |
setAllOrderedStaticInitializers(java.util.List<polyglot.ast.CodeNode> staticInits) |
java.util.Set<polyglot.types.ProcedureInstance> |
startProcs() |
public void registerMethod(polyglot.ast.MethodDecl n) throws polyglot.types.SemanticException
polyglot.types.SemanticException
public void registerConstructor(polyglot.ast.ConstructorDecl n)
public void registerInitializer(polyglot.ast.Initializer n)
public void registerFieldDecl(polyglot.ast.FieldDecl n)
protected void registerInitializer(polyglot.ast.CodeNode n, polyglot.types.InitializerInstance ii)
public polyglot.ast.CodeDecl getCode(polyglot.types.ProcedureInstance pi)
public boolean hasCode(polyglot.types.ProcedureInstance pi)
public java.util.List<polyglot.ast.CodeNode> getInstanceInitializers(polyglot.types.ClassType container)
public java.util.Set<polyglot.types.ClassType> getClassesWithStaticInitializers()
public java.util.List<polyglot.ast.CodeNode> getStaticInitializers(polyglot.types.ClassType container)
public void setAllOrderedStaticInitializers(java.util.List<polyglot.ast.CodeNode> staticInits)
public java.util.List<polyglot.ast.CodeNode> getAllOrderedStaticInitializers()
public static boolean isStartProc(polyglot.types.ProcedureInstance pi)
public java.util.Set<polyglot.types.ProcedureInstance> startProcs()
public java.util.Collection<polyglot.ast.CodeNode> allCode()
public int numRegisteredClasses()
public int numRegisteredProcedures()