Package system.codedom.compiler
Class TempFileCollection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.codedom.compiler.TempFileCollection
-
- All Implemented Interfaces:
AutoCloseable
,Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
,IDisposable
public class TempFileCollection extends NetObjectEnumerable implements IDisposable, AutoCloseable
The base .NET class managing System.CodeDom.Compiler.TempFileCollection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.See: https://docs.microsoft.com/en-us/dotnet/api/System.CodeDom.Compiler.TempFileCollection
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: Systemstatic String
className
Qualified class name: System.CodeDom.Compiler.TempFileCollectionstatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description TempFileCollection()
TempFileCollection(Object instance)
Internal constructor.TempFileCollection(String tempDir)
TempFileCollection(String tempDir, boolean keepFiles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
AddExtension(String fileExtension)
String
AddExtension(String fileExtension, boolean keepFile)
void
AddFile(String fileName, boolean keepFile)
static TempFileCollection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTempFileCollection
, a cast assert is made to check if types are compatible.void
close()
void
CopyTo(String[] fileNames, int start)
void
CopyTo(JCORefOut dupParam0, int dupParam1)
void
CopyTo(Array array, int index)
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.void
Delete()
void
Dispose()
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface.String
getBasePath()
int
getCount()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeboolean
getKeepFiles()
String
getTempDir()
void
setJCOInstance(JCObject instance)
void
setKeepFiles(boolean KeepFiles)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.CodeDom.Compiler.TempFileCollection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TempFileCollection
public TempFileCollection(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
TempFileCollection
public TempFileCollection() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, InvalidOperationException
-
TempFileCollection
public TempFileCollection(String tempDir) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, SecurityException, InvalidOperationException
-
TempFileCollection
public TempFileCollection(String tempDir, boolean keepFiles) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, SecurityException, NullReferenceException, InvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObjectEnumerable
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObjectEnumerable
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObjectEnumerable
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TempFileCollection cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoTempFileCollection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TempFileCollection
instance- Throws:
Throwable
- in case of error during cast operation
-
AddExtension
public String AddExtension(String fileExtension) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, AccessViolationException, Win32Exception, NotSupportedException, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
AccessViolationException
Win32Exception
NotSupportedException
NullReferenceException
-
AddExtension
public String AddExtension(String fileExtension, boolean keepFile) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, OutOfMemoryException, SecurityException, AccessViolationException, Win32Exception, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
OutOfMemoryException
SecurityException
AccessViolationException
Win32Exception
NullReferenceException
-
AddFile
public void AddFile(String fileName, boolean keepFile) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
Delete
public void Delete() throws Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, ArgumentOutOfRangeException, NotSupportedException
- Throws:
Throwable
ArgumentNullException
ObjectDisposedException
AbandonedMutexException
ArgumentException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
ArgumentOutOfRangeException
NotSupportedException
-
CopyTo
@Deprecated public void CopyTo(Array array, int index) throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToICollection method available in ICollection to obtain an object with an invocable method- Throws:
Throwable
-
Dispose
@Deprecated public void Dispose() throws Throwable
Deprecated.Not for public use because the method is implemented in .NET with an explicit interface. Use the static ToIDisposable method available in IDisposable to obtain an object with an invocable method- Specified by:
Dispose
in interfaceIDisposable
- Throws:
Throwable
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getBasePath
public String getBasePath() throws Throwable, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, SecurityException, IndexOutOfRangeException, AccessViolationException, Win32Exception, NullReferenceException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
ArgumentNullException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidOperationException
SecurityException
IndexOutOfRangeException
AccessViolationException
Win32Exception
NullReferenceException
-
-