java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.BlockScope
de.grogra.xl.compiler.scope.MethodScope
-
Field Summary
Modifier and TypeFieldDescriptionantlr.collections.AST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
createAndDeclareMethod
(String name, Type returnType) void
void
void
declareException
(Type type) declareParameter
(String name, long mods, Type type) declareParameter
(String name, long mods, Class cls) void
dispose()
void
void
enterBreakTarget
(String label) void
enterContinueTarget
(String label) boolean
enterLabel
(String name) static MethodScope
static MethodScope
get
(Expression e) getParameter
(int index) getParameterForEnclosingLocal
(Local enclosing) Type[]
int
getTargetId
(String name, boolean forContinue) boolean
boolean
boolean
boolean
isLocal()
boolean
isStatic()
Checks if this scope appears in a static context.void
leave
(BreakTarget e) final Local
makeVMXLocal
(Local local) void
removeLocal
(Local l) setBlock
(Expression block) toString()
Methods inherited from class de.grogra.xl.compiler.scope.BlockScope
addExpression, declareLocal, declareLocalClass, findClass, findLocal, findMembers, getBlock, getDeclaredClassCount, getLocals, getMethodScope, getProduceScope, getTypeScope, getUniqueName, nextUniqueId, prependExpression, receiveLocals, setDeclaredClassCount, setScopeForLocals, setUseNewScopeForQueries, useNewScopeForQueries
Methods inherited from class de.grogra.xl.compiler.scope.Scope
dump, encloses, getCompiler, getDeclaredType, getDefaultModuleSuperclass, getEnclosingScope, getExtension, getInstantiationProducerType, getOwnerOf, getPackage, getPropertyModel, getQueryModel, getRoot, insert, isD2FImplicit, isEnabledConversion, isShadowedBy
-
Field Details
-
consumer
-
enclosingInstance
-
ast
public antlr.collections.AST ast
-
-
Constructor Details
-
MethodScope
-
-
Method Details
-
getDeclaredEntity
- Overrides:
getDeclaredEntity
in classScope
-
createVMXFrame
public void createVMXFrame() -
createLocalForVMX
public void createLocalForVMX() -
getLocalForVMX
-
createAndDeclareMethod
-
setBlock
- Overrides:
setBlock
in classBlockScope
-
getMethod
-
isStatic
public boolean isStatic()Description copied from class:Scope
Checks if this scope appears in a static context. This is defined by the Java Language Specification. -
isInitializer
public boolean isInitializer() -
isConstructor
public boolean isConstructor() -
isIllegalUseBeforeDeclaration
-
isLocal
public boolean isLocal() -
get
-
get
-
getOutmost
-
declareException
-
declareParameter
-
declareParameter
-
getParameterForEnclosingLocal
-
getResultLocal
-
enterLabel
-
enterBreakTarget
-
enterContinueTarget
-
leave
-
getTargetId
-
getTargetFor
-
createThis
- Overrides:
createThis
in classBlockScope
-
makeVMXLocal
-
getParameterTypes
-
getParameter
-
removeLocal
-
complete
public void complete() -
dumpLocals
public void dumpLocals() -
toString
-
dispose
public void dispose()
-