io.shiftleft.codepropertygraph.generated.edges.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepropertygraph-domain-classes_3 Show documentation
Show all versions of codepropertygraph-domain-classes_3 Show documentation
codepropertygraph-domain-classes
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
}