Package org.eclipse.xtend.core.macro
Class CodeGenerationContextImpl
- java.lang.Object
-
- org.eclipse.xtend.core.macro.CodeGenerationContextImpl
-
- All Implemented Interfaces:
org.eclipse.xtend.lib.macro.CodeGenerationContext
,org.eclipse.xtend.lib.macro.file.FileLocations
,org.eclipse.xtend.lib.macro.file.FileSystemSupport
,org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
,org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
,org.eclipse.xtend.lib.macro.services.Tracability
public class CodeGenerationContextImpl extends java.lang.Object implements org.eclipse.xtend.lib.macro.CodeGenerationContext
-
-
Constructor Summary
Constructors Constructor Description CodeGenerationContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(org.eclipse.xtend.lib.macro.file.Path arg0)
boolean
exists(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.declaration.Type
findTypeGlobally(java.lang.Class<?> arg0)
org.eclipse.xtend.lib.macro.declaration.Type
findTypeGlobally(java.lang.String arg0)
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)
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.MutableFileSystemSupport
getFileSystemSupport()
org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
getGlobalTypeLookup()
long
getLastModification(org.eclipse.xtend.lib.macro.file.Path arg0)
org.eclipse.xtend.lib.macro.declaration.Element
getPrimaryGeneratedJavaElement(org.eclipse.xtend.lib.macro.declaration.Element arg0)
org.eclipse.xtend.lib.macro.declaration.Element
getPrimarySourceElement(org.eclipse.xtend.lib.macro.declaration.Element 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)
org.eclipse.xtend.lib.macro.services.Tracability
getTracability()
CompilationUnitImpl
getUnit()
boolean
isExternal(org.eclipse.xtend.lib.macro.declaration.Element arg0)
boolean
isFile(org.eclipse.xtend.lib.macro.file.Path arg0)
boolean
isFolder(org.eclipse.xtend.lib.macro.file.Path arg0)
boolean
isGenerated(org.eclipse.xtend.lib.macro.declaration.Element arg0)
boolean
isSource(org.eclipse.xtend.lib.macro.declaration.Element arg0)
boolean
isThePrimaryGeneratedJavaElement(org.eclipse.xtend.lib.macro.declaration.Element arg0)
void
mkdir(org.eclipse.xtend.lib.macro.file.Path arg0)
void
setContents(org.eclipse.xtend.lib.macro.file.Path arg0, java.lang.CharSequence arg1)
void
setContentsAsStream(org.eclipse.xtend.lib.macro.file.Path arg0, java.io.InputStream arg1)
void
setUnit(CompilationUnitImpl unit)
java.net.URI
toURI(org.eclipse.xtend.lib.macro.file.Path arg0)
-
-
-
Method Detail
-
getFileLocations
@Delegate public org.eclipse.xtend.lib.macro.file.FileLocations getFileLocations()
-
getFileSystemSupport
@Delegate public org.eclipse.xtend.lib.macro.file.MutableFileSystemSupport getFileSystemSupport()
-
getGlobalTypeLookup
@Delegate public org.eclipse.xtend.lib.macro.services.GlobalTypeLookup getGlobalTypeLookup()
-
getTracability
@Delegate public org.eclipse.xtend.lib.macro.services.Tracability getTracability()
-
getUnit
@Pure public CompilationUnitImpl getUnit()
-
setUnit
public void setUnit(CompilationUnitImpl unit)
-
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
-
delete
public void delete(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
delete
in interfaceorg.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
-
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
-
mkdir
public void mkdir(org.eclipse.xtend.lib.macro.file.Path arg0)
- Specified by:
mkdir
in interfaceorg.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
-
setContents
public void setContents(org.eclipse.xtend.lib.macro.file.Path arg0, java.lang.CharSequence arg1)
- Specified by:
setContents
in interfaceorg.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
-
setContentsAsStream
public void setContentsAsStream(org.eclipse.xtend.lib.macro.file.Path arg0, java.io.InputStream arg1)
- Specified by:
setContentsAsStream
in interfaceorg.eclipse.xtend.lib.macro.file.MutableFileSystemSupport
-
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
-
findTypeGlobally
public org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally(java.lang.Class<?> arg0)
- Specified by:
findTypeGlobally
in interfaceorg.eclipse.xtend.lib.macro.services.GlobalTypeLookup
-
findTypeGlobally
public org.eclipse.xtend.lib.macro.declaration.Type findTypeGlobally(java.lang.String arg0)
- Specified by:
findTypeGlobally
in interfaceorg.eclipse.xtend.lib.macro.services.GlobalTypeLookup
-
getPrimaryGeneratedJavaElement
public org.eclipse.xtend.lib.macro.declaration.Element getPrimaryGeneratedJavaElement(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
getPrimaryGeneratedJavaElement
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
getPrimarySourceElement
public org.eclipse.xtend.lib.macro.declaration.Element getPrimarySourceElement(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
getPrimarySourceElement
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
isExternal
public boolean isExternal(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
isExternal
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
isGenerated
public boolean isGenerated(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
isGenerated
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
isSource
public boolean isSource(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
isSource
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
isThePrimaryGeneratedJavaElement
public boolean isThePrimaryGeneratedJavaElement(org.eclipse.xtend.lib.macro.declaration.Element arg0)
- Specified by:
isThePrimaryGeneratedJavaElement
in interfaceorg.eclipse.xtend.lib.macro.services.Tracability
-
-