Package com.google.turbine.binder.bound
Class SourceHeaderBoundClass
- java.lang.Object
-
- com.google.turbine.binder.bound.SourceHeaderBoundClass
-
- All Implemented Interfaces:
BoundClass,HeaderBoundClass
public class SourceHeaderBoundClass extends java.lang.Object implements HeaderBoundClass
AHeaderBoundClassthat corresponds to a source file being compiled.
-
-
Constructor Summary
Constructors Constructor Description SourceHeaderBoundClass(PackageSourceBoundClass base, @Nullable ClassSymbol superclass, com.google.common.collect.ImmutableList<ClassSymbol> interfaces, com.google.common.collect.ImmutableMap<java.lang.String,TyVarSymbol> typeParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccess()Class access bits (see JVMS table 4.1).com.google.common.collect.ImmutableMap<java.lang.String,ClassSymbol>children()Member type declarations, by simple name.Tree.TyDecldecl()com.google.common.collect.ImmutableList<ClassSymbol>interfaces()The interfaces of the declaration.TurbineTyKindkind()The kind of declared type (class, interface, enum, or annotation).MemberImportIndexmemberImports()The static member import index for the enclosing compilation unit.@Nullable ClassSymbolowner()The enclosing declaration for member types, ornullfor top-level declarations.ImportScopescope()SourceFilesource()The source file.@Nullable ClassSymbolsuperclass()The superclass of the declaration.com.google.common.collect.ImmutableMap<java.lang.String,TyVarSymbol>typeParameters()Declared type parameters.
-
-
-
Constructor Detail
-
SourceHeaderBoundClass
public SourceHeaderBoundClass(PackageSourceBoundClass base, @Nullable ClassSymbol superclass, com.google.common.collect.ImmutableList<ClassSymbol> interfaces, com.google.common.collect.ImmutableMap<java.lang.String,TyVarSymbol> typeParameters)
-
-
Method Detail
-
superclass
public @Nullable ClassSymbol superclass()
Description copied from interface:HeaderBoundClassThe superclass of the declaration.- Specified by:
superclassin interfaceHeaderBoundClass
-
interfaces
public com.google.common.collect.ImmutableList<ClassSymbol> interfaces()
Description copied from interface:HeaderBoundClassThe interfaces of the declaration.- Specified by:
interfacesin interfaceHeaderBoundClass
-
access
public int access()
Description copied from interface:BoundClassClass access bits (see JVMS table 4.1).- Specified by:
accessin interfaceBoundClass
-
kind
public TurbineTyKind kind()
Description copied from interface:BoundClassThe kind of declared type (class, interface, enum, or annotation).- Specified by:
kindin interfaceBoundClass
-
owner
public @Nullable ClassSymbol owner()
Description copied from interface:BoundClassThe enclosing declaration for member types, ornullfor top-level declarations.- Specified by:
ownerin interfaceBoundClass
-
children
public com.google.common.collect.ImmutableMap<java.lang.String,ClassSymbol> children()
Description copied from interface:BoundClassMember type declarations, by simple name.- Specified by:
childrenin interfaceBoundClass
-
typeParameters
public com.google.common.collect.ImmutableMap<java.lang.String,TyVarSymbol> typeParameters()
Declared type parameters.- Specified by:
typeParametersin interfaceHeaderBoundClass
-
scope
public ImportScope scope()
-
decl
public Tree.TyDecl decl()
-
memberImports
public MemberImportIndex memberImports()
The static member import index for the enclosing compilation unit.
-
source
public SourceFile source()
The source file.
-
-