java.lang.Object
de.grogra.xl.compiler.scope.Scope
de.grogra.xl.compiler.scope.CompilationUnitScope
- All Implemented Interfaces:
Member
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.xl.compiler.scope.Scope
Scope.PMInfo -
Field Summary
FieldsFields inherited from interface de.grogra.reflect.Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONST, CONSTANT, FINAL, GLOBAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE -
Constructor Summary
ConstructorsConstructorDescriptionCompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, Compiler compiler) CompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, XL16UFrontendRouteGate.Route xl16uFrontendRoute, Compiler compiler) CompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, XL16UFrontendRouteGate.Route xl16uFrontendRoute, XL16UFrontendParseSummary xl16uFrontendParseSummary, Compiler compiler) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidattachXL16USymbolMetadata(Member member, String symbolName) booleanbooleanDeprecated.voiddeclareLocalClass(CClass type) voiddeclareType(CClass type) voiddispose()voidfindMembers(String name, int flags, Members list) Finds all members which are declared in this scope or enclosing scopes.static CompilationUnitScopegetDeclaredAnnotation(int index) intType[]Returns the declaring type of which this is a member.Returns a descriptor for this member.Type[]intReturns the modifiers of this member as a combination of the bit masks which are defined in this interface.getName()Returns the name of this member.Returns the simple name of this member.getXL16UCallableSignature(Member member) intintintgetXL16UParameterMetadata(Member member, int parameterIndex) intintintintintDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.Deprecated.intDeprecated.Deprecated.intDeprecated.Deprecated.getXL16USymbolMetadata(Member member) booleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanbooleanDeprecated.booleanMethods inherited from class de.grogra.xl.compiler.scope.Scope
dump, encloses, getDeclaredType, getDefaultModuleSuperclass, getDefaultParameterManager, getEnclosingScope, getExtension, getInstantiationProducerType, getOwnerOf, getPackage, getPropertyModel, getQueryModel, getRoot, insert, isD2FImplicit, isEnabledConversion, isShadowedBy, isStatic
-
Field Details
-
properties
-
-
Constructor Details
-
CompilationUnitScope
public CompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, Compiler compiler) -
CompilationUnitScope
public CompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, XL16UFrontendRouteGate.Route xl16uFrontendRoute, Compiler compiler) -
CompilationUnitScope
public CompilationUnitScope(Scope enclosing, String source, Annotation[] annotations, XL16UCompilerScopeHandoff xl16uHandoff, XL16UFrontendRouteGate.Route xl16uFrontendRoute, XL16UFrontendParseSummary xl16uFrontendParseSummary, Compiler compiler)
-
-
Method Details
-
get
-
getCompiler
- Overrides:
getCompilerin classScope
-
getXL16UCompilerScopeHandoff
-
getXL16UFrontendRoute
-
getXL16UFrontendRouteId
-
usesXL16UHandBuiltFrontendRoute
public boolean usesXL16UHandBuiltFrontendRoute() -
usesXL16UExperimentalAntlrFrontendRoute
public boolean usesXL16UExperimentalAntlrFrontendRoute() -
getXL16UFrontendParseSummary
-
xl16uParsedBySelectedFrontend
public boolean xl16uParsedBySelectedFrontend() -
getXL16UFrontendParseTokenCount
public int getXL16UFrontendParseTokenCount() -
getXL16UFrontendParseDeclarationCount
public int getXL16UFrontendParseDeclarationCount() -
getXL16UFrontendParseCallableCount
public int getXL16UFrontendParseCallableCount() -
getXL16USourceOwnedCodeGenerationBoundaryResult
public XL16USourceOwnedLegacyCodeGenerationBoundaryResult getXL16USourceOwnedCodeGenerationBoundaryResult() -
getXL16USourceOwnedLegacyCodeGenerationBoundaryResult
@Deprecated public XL16USourceOwnedLegacyCodeGenerationBoundaryResult getXL16USourceOwnedLegacyCodeGenerationBoundaryResult()Deprecated. -
getXL16USourceOwnedBackendConsumptionResult
-
getXL16USourceOwnedLegacyBackendConsumptionResult
@Deprecated public XL16USourceOwnedLegacyBackendConsumptionResult getXL16USourceOwnedLegacyBackendConsumptionResult()Deprecated. -
getXL16USourceOwnedBackendConsumptionPlan
-
getXL16USourceOwnedLegacyBackendConsumptionPlan
@Deprecated public XL16USourceOwnedLegacyBackendConsumptionPlan getXL16USourceOwnedLegacyBackendConsumptionPlan()Deprecated. -
getXL16USourceOwnedBackendConsumedNodes
public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedBackendConsumedNodes() -
getXL16USourceOwnedLegacyBackendConsumedNodes
@Deprecated public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedLegacyBackendConsumedNodes()Deprecated. -
getXL16USourceOwnedBackendDeclarationConsumedNodes
public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedBackendDeclarationConsumedNodes() -
getXL16USourceOwnedLegacyBackendDeclarationConsumedNodes
@Deprecated public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedLegacyBackendDeclarationConsumedNodes()Deprecated. -
getXL16USourceOwnedBackendStatementConsumedNodes
public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedBackendStatementConsumedNodes() -
getXL16USourceOwnedLegacyBackendStatementConsumedNodes
@Deprecated public List<XL16USourceOwnedLegacyBackendConsumptionResult.ConsumedBoundaryNode> getXL16USourceOwnedLegacyBackendStatementConsumedNodes()Deprecated. -
getXL16USourceOwnedBackendConsumedNodeCount
public int getXL16USourceOwnedBackendConsumedNodeCount() -
getXL16USourceOwnedLegacyBackendConsumedNodeCount
Deprecated. -
hasXL16USourceOwnedBackendConsumptionResult
public boolean hasXL16USourceOwnedBackendConsumptionResult() -
hasXL16USourceOwnedLegacyBackendConsumptionResult
Deprecated. -
consumedAllXL16USourceOwnedBackendBoundaryNodes
public boolean consumedAllXL16USourceOwnedBackendBoundaryNodes() -
consumedAllXL16USourceOwnedLegacyBackendBoundaryNodes
Deprecated. -
xl16uSourceOwnedBackendConsumptionReady
public boolean xl16uSourceOwnedBackendConsumptionReady() -
xl16uSourceOwnedLegacyBackendConsumptionReady
Deprecated. -
hasXL16USourceOwnedBackendConsumptionPlan
public boolean hasXL16USourceOwnedBackendConsumptionPlan() -
hasXL16USourceOwnedLegacyBackendConsumptionPlan
Deprecated. -
xl16uUsesAstOwnedSourceOwnedBackendConsumption
public boolean xl16uUsesAstOwnedSourceOwnedBackendConsumption() -
xl16uUsesAstOwnedLegacyBackendConsumption
Deprecated. -
xl16uUsesCompatibilitySourceFallbackForSourceOwnedBackend
public boolean xl16uUsesCompatibilitySourceFallbackForSourceOwnedBackend() -
xl16uUsesCompatibilitySourceFallbackForLegacyBackend
Deprecated. -
getXL16USourceOwnedCodeGenerationBoundaryNodes
public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedCodeGenerationBoundaryNodes() -
getXL16USourceOwnedLegacyCodeGenerationBoundaryNodes
@Deprecated public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedLegacyCodeGenerationBoundaryNodes()Deprecated. -
getXL16USourceOwnedCodeGenerationDeclarationBoundaryNodes
public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedCodeGenerationDeclarationBoundaryNodes() -
getXL16USourceOwnedLegacyCodeGenerationDeclarationBoundaryNodes
@Deprecated public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedLegacyCodeGenerationDeclarationBoundaryNodes()Deprecated. -
getXL16USourceOwnedCodeGenerationStatementBoundaryNodes
public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedCodeGenerationStatementBoundaryNodes() -
getXL16USourceOwnedLegacyCodeGenerationStatementBoundaryNodes
@Deprecated public List<XL16USourceOwnedLegacyCodeGenerationBoundaryResult.BoundaryNode> getXL16USourceOwnedLegacyCodeGenerationStatementBoundaryNodes()Deprecated. -
getXL16USourceOwnedCodeGenerationBoundaryNodeCount
public int getXL16USourceOwnedCodeGenerationBoundaryNodeCount() -
getXL16USourceOwnedLegacyCodeGenerationBoundaryNodeCount
Deprecated. -
getXL16USourceOwnedCodeGenerationDeclarationBoundaryNodeCount
public int getXL16USourceOwnedCodeGenerationDeclarationBoundaryNodeCount() -
getXL16USourceOwnedLegacyCodeGenerationDeclarationBoundaryNodeCount
Deprecated. -
getXL16USourceOwnedCodeGenerationStatementBoundaryNodeCount
public int getXL16USourceOwnedCodeGenerationStatementBoundaryNodeCount() -
getXL16USourceOwnedLegacyCodeGenerationStatementBoundaryNodeCount
Deprecated. -
hasXL16USourceOwnedCodeGenerationBoundaryResult
public boolean hasXL16USourceOwnedCodeGenerationBoundaryResult() -
hasXL16USourceOwnedLegacyCodeGenerationBoundaryResult
Deprecated. -
hasXL16USourceOwnedCodeGenerationBoundaryWork
public boolean hasXL16USourceOwnedCodeGenerationBoundaryWork() -
hasXL16USourceOwnedLegacyCodeGenerationBoundaryWork
Deprecated. -
xl16uSourceOwnedCodeGenerationBoundaryReady
public boolean xl16uSourceOwnedCodeGenerationBoundaryReady() -
xl16uSourceOwnedLegacyCodeGenerationBoundaryReady
Deprecated. -
xl16uSourceOwnedCodeGenerationRequiresCompatibilitySourceFallback
public boolean xl16uSourceOwnedCodeGenerationRequiresCompatibilitySourceFallback() -
xl16uSourceOwnedLegacyCodeGenerationRequiresCompatibilitySourceFallback
@Deprecated public boolean xl16uSourceOwnedLegacyCodeGenerationRequiresCompatibilitySourceFallback()Deprecated. -
getXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult
public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult getXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult() -
hasXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult
public boolean hasXL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult() -
xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementReady
public boolean xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementReady() -
xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementRequiresCompatibilitySourceFallback
public boolean xl16uBackendRuntimeAstOwnedBridgeCallSiteReplacementRequiresCompatibilitySourceFallback() -
xl16uSemanticAstBytecodeCallSiteReplacementReady
public boolean xl16uSemanticAstBytecodeCallSiteReplacementReady() -
xl16uSemanticAstBytecodeCallSiteReplacementRequiresCompatibilitySourceFallback
public boolean xl16uSemanticAstBytecodeCallSiteReplacementRequiresCompatibilitySourceFallback() -
selectXL16USemanticAstBytecodeCallSitePath
-
getSelectedXL16USemanticAstBytecodeCallSiteReplacement
public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16USemanticAstBytecodeCallSiteReplacement() -
xl16uSemanticEffectRuntimeCallSiteReplacementReady
public boolean xl16uSemanticEffectRuntimeCallSiteReplacementReady() -
xl16uSemanticEffectRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback
public boolean xl16uSemanticEffectRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback() -
selectXL16USemanticEffectRuntimeCallSitePath
-
getSelectedXL16USemanticEffectRuntimeCallSiteReplacement
public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16USemanticEffectRuntimeCallSiteReplacement() -
xl16uCommitTailRuntimeCallSiteReplacementReady
public boolean xl16uCommitTailRuntimeCallSiteReplacementReady() -
xl16uCommitTailRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback
public boolean xl16uCommitTailRuntimeCallSiteReplacementRequiresCompatibilitySourceFallback() -
selectXL16UCommitTailRuntimeCallSitePath
-
getSelectedXL16UCommitTailRuntimeCallSiteReplacement
public XL16UBackendRuntimeAstOwnedBridgeCallSiteReplacementResult.AstOwnedBridgeCallSiteReplacement getSelectedXL16UCommitTailRuntimeCallSiteReplacement() -
getSource
-
findMembers
Description copied from class:ScopeFinds all members which are declared in this scope or enclosing scopes. This method should be overwritten by subclasses; an invocation ofsuper.findMembershas to be included in order to look for members in enclosing scopes. Theflagsare a combination of the bit masks defined inMembers, they are used to restrict the range of possible members.- Overrides:
findMembersin classScope- Parameters:
name- simple name of the members to findflags- combination of masks defined inMemberslist- found members are added to this list
-
declareType
-
declareLocalClass
-
getDeclaredTypes
-
getLocalClasses
-
getDeclaredPublicType
-
getXL16UCallableSignature
-
getXL16USymbolMetadata
-
getXL16UParameterMetadata
-
attachResolvedXL16UCallableSignature
-
attachXL16USymbolMetadata
-
getDeclaredAnnotation
- Specified by:
getDeclaredAnnotationin interfaceMember
-
getDeclaredAnnotationCount
public int getDeclaredAnnotationCount()- Specified by:
getDeclaredAnnotationCountin interfaceMember
-
dispose
public void dispose() -
getDeclaredEntity
- Overrides:
getDeclaredEntityin classScope
-
getDeclaringType
Description copied from interface:MemberReturns the declaring type of which this is a member. May benullif such a type does not exist.- Specified by:
getDeclaringTypein interfaceMember- Returns:
- this member's declaring type
-
getDescriptor
Description copied from interface:MemberReturns a descriptor for this member. Descriptors are constructed as follows:- For types, descriptors are defined as for the Java Virtual
Machine. For primitive types these are the single characters
'Z', 'B', 'S', 'C', 'I', 'J', 'F', 'D', 'V'
for
boolean,byte,short,char,int,long,float,double,void. For array types, the descriptor is the character '[' plus the descriptor of its component type, e.g.,[[Iforint[][]. For non-array reference types, the descriptor is the character 'L', followed by the binary name (seeType.getBinaryName()) of the type, where '.' has to be replaced by '/', followed by ';', e.g.,Ljava/lang/Object;. - For fields, the descriptor is the character 'f', followed by the
simple name of the field, followed by the character ';', followed
by the descriptor of the field's type. E.g.,
fout;Ljava/io/PrintStream;for the fieldSystem.out. - For methods and constructors, the descriptor is the character
'm', followed by the simple name of the method (which is
<init>for constructors), followed by the characters ';' and '(', followed by the descriptors of the method's parameter types, followed by ')', followed by the descriptor of the return type. E.g.mprintln;(Ljava/lang/String;)Vfor the methodPrintStream.println(String).
- Specified by:
getDescriptorin interfaceMember- Returns:
- the member's descriptor
- For types, descriptors are defined as for the Java Virtual
Machine. For primitive types these are the single characters
'Z', 'B', 'S', 'C', 'I', 'J', 'F', 'D', 'V'
for
-
getModifiers
public int getModifiers()Description copied from interface:MemberReturns the modifiers of this member as a combination of the bit masks which are defined in this interface.- Specified by:
getModifiersin interfaceMember- Returns:
- modifiers of this member
-
getName
Description copied from interface:MemberReturns the name of this member. For types, this is the canonical name of the type, e.g,java.lang.Object,java.util.Map.Entry. Otherwise, it equalsMember.getSimpleName(). -
getSimpleName
Description copied from interface:MemberReturns the simple name of this member. This is the single identifier with which the member is declared in source code, e.g.,Object,out,println.- Specified by:
getSimpleNamein interfaceMember- Returns:
- simple name of the member
-