All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shiftleft.codepropertygraph.generated.edges.package.scala Maven / Gradle / Ivy

The newest version!
package io.shiftleft.codepropertygraph.generated.edges

import overflowdb._
import scala.jdk.CollectionConverters._

object PropertyErrorRegister {
  private var errorMap = Set[(Class[?], String)]()
  private val logger   = org.slf4j.LoggerFactory.getLogger(getClass)

  def logPropertyErrorIfFirst(clazz: Class[?], propertyName: String): Unit = {
    if (!errorMap.contains((clazz, propertyName))) {
      logger.warn("Property " + propertyName + " is deprecated for " + clazz.getName + ".")
      errorMap += ((clazz, propertyName))
    }
  }
}

object Factories {
  lazy val all: Seq[EdgeFactory[?]] = Seq(
    AliasOf.factory,
    Argument.factory,
    Ast.factory,
    Binds.factory,
    BindsTo.factory,
    Call.factory,
    Capture.factory,
    CapturedBy.factory,
    Cdg.factory,
    Cfg.factory,
    Condition.factory,
    Contains.factory,
    Dominate.factory,
    EvalType.factory,
    Imports.factory,
    InheritsFrom.factory,
    IsCallForImport.factory,
    ParameterLink.factory,
    PostDominate.factory,
    ReachingDef.factory,
    Receiver.factory,
    Ref.factory,
    SourceFile.factory,
    TaggedBy.factory
  )
  lazy val allAsJava: java.util.List[EdgeFactory[?]] = all.asJava
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy