Class PEHeader
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.portableexecutable.PEHeader
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class PEHeader extends NetObject
The base .NET class managing System.Reflection.PortableExecutable.PEHeader, System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.PortableExecutable.PEHeader
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Reflection.Metadatastatic java.lang.String
className
Qualified class name: System.Reflection.PortableExecutable.PEHeaderstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Reflection.Metadata- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.PortableExecutable.PEHeader- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PEHeader cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPEHeader
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PEHeader
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
getMajorLinkerVersion
public byte getMajorLinkerVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinorLinkerVersion
public byte getMinorLinkerVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAddressOfEntryPoint
public int getAddressOfEntryPoint() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBaseOfCode
public int getBaseOfCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBaseOfData
public int getBaseOfData() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFileAlignment
public int getFileAlignment() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNumberOfRvaAndSizes
public int getNumberOfRvaAndSizes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSectionAlignment
public int getSectionAlignment() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfCode
public int getSizeOfCode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfHeaders
public int getSizeOfHeaders() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfImage
public int getSizeOfImage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfInitializedData
public int getSizeOfInitializedData() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfUninitializedData
public int getSizeOfUninitializedData() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBaseRelocationTableDirectory
public DirectoryEntry getBaseRelocationTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBoundImportTableDirectory
public DirectoryEntry getBoundImportTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCertificateTableDirectory
public DirectoryEntry getCertificateTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCopyrightTableDirectory
public DirectoryEntry getCopyrightTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCorHeaderTableDirectory
public DirectoryEntry getCorHeaderTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDebugTableDirectory
public DirectoryEntry getDebugTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDelayImportTableDirectory
public DirectoryEntry getDelayImportTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getExceptionTableDirectory
public DirectoryEntry getExceptionTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getExportTableDirectory
public DirectoryEntry getExportTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getGlobalPointerTableDirectory
public DirectoryEntry getGlobalPointerTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getImportAddressTableDirectory
public DirectoryEntry getImportAddressTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getImportTableDirectory
public DirectoryEntry getImportTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLoadConfigTableDirectory
public DirectoryEntry getLoadConfigTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getResourceTableDirectory
public DirectoryEntry getResourceTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getThreadLocalStorageTableDirectory
public DirectoryEntry getThreadLocalStorageTableDirectory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDllCharacteristics
public DllCharacteristics getDllCharacteristics() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMagic
public PEMagic getMagic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSubsystem
public Subsystem getSubsystem() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMajorImageVersion
public UInt16 getMajorImageVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMajorOperatingSystemVersion
public UInt16 getMajorOperatingSystemVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMajorSubsystemVersion
public UInt16 getMajorSubsystemVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinorImageVersion
public UInt16 getMinorImageVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinorOperatingSystemVersion
public UInt16 getMinorOperatingSystemVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinorSubsystemVersion
public UInt16 getMinorSubsystemVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCheckSum
public UInt32 getCheckSum() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getImageBase
public UInt64 getImageBase() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfHeapCommit
public UInt64 getSizeOfHeapCommit() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfHeapReserve
public UInt64 getSizeOfHeapReserve() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfStackCommit
public UInt64 getSizeOfStackCommit() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeOfStackReserve
public UInt64 getSizeOfStackReserve() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-