InfDepexObject.py revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
## @file
# This file is used to define class objects of INF file [Depex] section.
# It will consumed by InfParser.
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
'''
InfDepexObject
'''
from Library import GlobalData
class InfDepexContentItem():
def GetSectionType(self):
return self.SectionType
def GetSectionString(self):
return self.SectionString
class InfDepexItem():
def GetFeatureFlagExp(self):
return self.FeatureFlagExp
def GetSupArch(self):
def GetHelpString(self):
return self.HelpString
def GetModuleType(self):
return self.ModuleType
def GetDepexContent(self):
return self.DepexContent
return self.InfDepexContentItemList
## InfDepexObject
#
#
#
class InfDepexObject(InfSectionCommonDef):
#
# Validate Arch
#
else:
#
# Validate Module Type
#
else:
#
# Parser content in [Depex] section.
#
DepexString = ''
HelpString = ''
#
# Get Depex Expression
#
for Line in DepexContent:
if LineContent:
continue
if not DepexString.strip():
continue
#
# Get Help Text
#
for HelpLine in CommentList:
return True
def GetAllContent(self):
return self.AllContent