java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.BlockScope
de.grogra.xl.compiler.scope.MethodScope
-
Field Summary
FieldsModifier and TypeFieldDescriptionantlr.collections.AST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()createAndDeclareMethod(String name, Type returnType) voidvoidvoiddeclareException(Type type) declareParameter(String name, long mods, Type type) declareParameter(String name, long mods, Class cls) voiddispose()voidvoidenterBreakTarget(String label) voidenterContinueTarget(String label) booleanenterLabel(String name) static MethodScopestatic MethodScopeget(Expression e) getParameter(int index) getParameterForEnclosingLocal(Local enclosing) Type[]intgetTargetId(String name, boolean forContinue) booleanbooleanbooleanbooleanisLocal()booleanisStatic()Checks if this scope appears in a static context.voidleave(BreakTarget e) final LocalmakeVMXLocal(Local local) voidremoveLocal(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, useNewScopeForQueriesMethods 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:
getDeclaredEntityin classScope
-
createVMXFrame
public void createVMXFrame() -
createLocalForVMX
public void createLocalForVMX() -
getLocalForVMX
-
createAndDeclareMethod
-
setBlock
- Overrides:
setBlockin classBlockScope
-
getMethod
-
isStatic
public boolean isStatic()Description copied from class:ScopeChecks 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:
createThisin classBlockScope
-
makeVMXLocal
-
getParameterTypes
-
getParameter
-
removeLocal
-
complete
public void complete() -
dumpLocals
public void dumpLocals() -
toString
-
dispose
public void dispose()
-