Package org.eclipse.xtend.core.macro
Class RegisterGlobalsContextImpl
- java.lang.Object
-
- org.eclipse.xtend.core.macro.RegisterGlobalsContextImpl
-
- All Implemented Interfaces:
org.eclipse.xtend.lib.macro.file.FileLocations
,org.eclipse.xtend.lib.macro.file.FileSystemSupport
,org.eclipse.xtend.lib.macro.RegisterGlobalsContext
,org.eclipse.xtend.lib.macro.services.SourceTypeLookup
,org.eclipse.xtend.lib.macro.services.UpstreamTypeLookup
public class RegisterGlobalsContextImpl extends java.lang.Object implements org.eclipse.xtend.lib.macro.RegisterGlobalsContext
-
-
Constructor Summary
Constructors Constructor Description RegisterGlobalsContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration
findSourceAnnotationType(java.lang.String arg0)
org.eclipse.xtend.lib.macro.declaration.ClassDeclaration
findSourceClass(java.lang.String arg0)
org.eclipse.xtend.lib.macro.declaration.EnumerationTypeDeclaration
findSourceEnumerationType(java.lang.String arg0)
org.eclipse.xtend.lib.macro.declaration.InterfaceDeclaration
findSourceInterface(java.lang.String arg0)
org.eclipse.xtend.lib.macro.declaration.Type
findUpstreamType(java.lang.Class<?> arg0)
org.eclipse.xtend.lib.macro.declaration.Type
findUpstreamType(java.lang.String arg0)
org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor
getAcceptor()
java.lang.String
getCharset(org.eclipse.xtend.lib.macro.file.Path arg0)
java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path>
getChildren(org.eclipse.xtend.lib.macro.file.Path arg0)
CompilationUnitImpl
getCompilationUnit()
java.lang.CharSequence
getContents(org.eclipse.xtend.lib.macro.file.Path arg0)
java.io.InputStream
getContentsAsStream(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.file.FileLocations
getFileLocations()
org.eclipse.xtend.lib.macro.file.FileSystemSupport
getFileSystemSupport()
long
getLastModification(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.file.Path
getProjectFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
java.util.Set<org.eclipse.xtend.lib.macro.file.Path>
getProjectSourceFolders(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.file.Path
getSourceFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.file.Path
getTargetFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
TypeLookupImpl
getTypeLookup()
boolean
isFile(org.eclipse.xtend.lib.macro.file.Path arg0)
boolean
isFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
void
registerAnnotationType(java.lang.String qualifiedName)
void
registerClass(java.lang.String qualifiedName)
void
registerEnumerationType(java.lang.String qualifiedName)
void
registerInterface(java.lang.String qualifiedName)
void
setAcceptor(org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor)
void
setCompilationUnit(CompilationUnitImpl compilationUnit)
java.net.URI
toURI(org.eclipse.xtend.lib.macro.file.Path arg0)
-
-
-
Method Detail
-
registerAnnotationType
public void registerAnnotationType(java.lang.String qualifiedName) throws java.lang.IllegalArgumentException
- Specified by:
registerAnnotationType
in interfaceorg.eclipse.xtend.lib.macro.RegisterGlobalsContext
- Throws:
java.lang.IllegalArgumentException
-
registerClass
public void registerClass(java.lang.String qualifiedName) throws java.lang.IllegalArgumentException
- Specified by:
registerClass
in interfaceorg.eclipse.xtend.lib.macro.RegisterGlobalsContext
- Throws:
java.lang.IllegalArgumentException
-
registerEnumerationType
public void registerEnumerationType(java.lang.String qualifiedName) throws java.lang.IllegalArgumentException
- Specified by:
registerEnumerationType
in interfaceorg.eclipse.xtend.lib.macro.RegisterGlobalsContext
- Throws:
java.lang.IllegalArgumentException
-
registerInterface
public void registerInterface(java.lang.String qualifiedName) throws java.lang.IllegalArgumentException
- Specified by:
registerInterface
in interfaceorg.eclipse.xtend.lib.macro.RegisterGlobalsContext
- Throws:
java.lang.IllegalArgumentException
-
getFileSystemSupport
@Delegate public org.eclipse.xtend.lib.macro.file.FileSystemSupport getFileSystemSupport()
-
getFileLocations
@Delegate public org.eclipse.xtend.lib.macro.file.FileLocations getFileLocations()
-
getTypeLookup
@Delegate public TypeLookupImpl getTypeLookup()
-
getAcceptor
@Pure public org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor getAcceptor()
-
setAcceptor
public void setAcceptor(org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor acceptor)
-
getCompilationUnit
@Pure public CompilationUnitImpl getCompilationUnit()
-
setCompilationUnit
public void setCompilationUnit(CompilationUnitImpl compilationUnit)
-
exists
public boolean exists(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
exists
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getCharset
public java.lang.String getCharset(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getCharset
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getChildren
public java.lang.Iterable<? extends org.eclipse.xtend.lib.macro.file.Path> getChildren(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getChildren
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getContents
public java.lang.CharSequence getContents(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getContents
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getContentsAsStream
public java.io.InputStream getContentsAsStream(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getContentsAsStream
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getLastModification
public long getLastModification(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getLastModification
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
isFile
public boolean isFile(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
isFile
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
isFolder
public boolean isFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
isFolder
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
toURI
public java.net.URI toURI(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
toURI
in interfaceorg.eclipse.xtend.lib.macro.file.FileSystemSupport
-
getProjectFolder
public org.eclipse.xtend.lib.macro.file.Path getProjectFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getProjectFolder
in interfaceorg.eclipse.xtend.lib.macro.file.FileLocations
-
getProjectSourceFolders
public java.util.Set<org.eclipse.xtend.lib.macro.file.Path> getProjectSourceFolders(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getProjectSourceFolders
in interfaceorg.eclipse.xtend.lib.macro.file.FileLocations
-
getSourceFolder
public org.eclipse.xtend.lib.macro.file.Path getSourceFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getSourceFolder
in interfaceorg.eclipse.xtend.lib.macro.file.FileLocations
-
getTargetFolder
public org.eclipse.xtend.lib.macro.file.Path getTargetFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
getTargetFolder
in interfaceorg.eclipse.xtend.lib.macro.file.FileLocations
-
findSourceAnnotationType
public org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration findSourceAnnotationType(java.lang.String arg0)
- Specified by:
findSourceAnnotationType
in interfaceorg.eclipse.xtend.lib.macro.services.SourceTypeLookup
-
findSourceClass
public org.eclipse.xtend.lib.macro.declaration.ClassDeclaration findSourceClass(java.lang.String arg0)
- Specified by:
findSourceClass
in interfaceorg.eclipse.xtend.lib.macro.services.SourceTypeLookup
-
findSourceEnumerationType
public org.eclipse.xtend.lib.macro.declaration.EnumerationTypeDeclaration findSourceEnumerationType(java.lang.String arg0)
- Specified by:
findSourceEnumerationType
in interfaceorg.eclipse.xtend.lib.macro.services.SourceTypeLookup
-
findSourceInterface
public org.eclipse.xtend.lib.macro.declaration.InterfaceDeclaration findSourceInterface(java.lang.String arg0)
- Specified by:
findSourceInterface
in interfaceorg.eclipse.xtend.lib.macro.services.SourceTypeLookup
-
findUpstreamType
public org.eclipse.xtend.lib.macro.declaration.Type findUpstreamType(java.lang.Class<?> arg0)
- Specified by:
findUpstreamType
in interfaceorg.eclipse.xtend.lib.macro.services.UpstreamTypeLookup
-
findUpstreamType
public org.eclipse.xtend.lib.macro.declaration.Type findUpstreamType(java.lang.String arg0)
- Specified by:
findUpstreamType
in interfaceorg.eclipse.xtend.lib.macro.services.UpstreamTypeLookup
-
-