Packages

o

ch.usi.inf.reveal.parsing.artifact

ArtifactSerializer

object ArtifactSerializer

Serializer/Deserializer utility for artifacts.

This version works only for StackOverflowArtifact.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArtifactSerializer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val artifactElementTypes: List[Class[_ >: NaturalLanguageTaggedUnit with CodeTaggedUnit with XmlSourceInfo with StackOverflowQuestion with StackOverflowAnswer with StackOverflowComment with StackOverflowArtifact with StackOverflowUser <: JsonSerializable]]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val astNodeTypes: List[Class[_ >: CompilationUnitPreambleNode with MissingExpressionNode with GenericEmbeddedContentsNode with BlockCommentNode with InlineCommentNode with MethodReferenceNode with LambdaParametersNode with LambdaBodyBlockNode with LambdaBodyExpressionNode with LambdaExpressionNode with JsonMemberNode with JsonObjectNode with JsonStringNode with JsonNullNode with JsonBooleanNode with JsonFloatNode with JsonIntNode with JsonArrayNode with StackTraceThreadNameNode with SourceLocationNode with StackTraceMoreExceptions with StackTraceNode with StackTraceLineNode with ExceptionMessageNode with HASTNodeSequence with XmlComposedNode with XmlSingleNode with XmlPrologNode with XmlCommentNode with XmlTextNode with XmlCDATANode with XmlDocumentNode with XmlAttributeNode with XmlNameNode with ThrownExceptionsNode with VariableExpressionInitializerNode with ParameterizedTypeNode with SuperTypeBoundNode with ExtendsTypeBoundNode with WildcardTypeArgumentNode with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ArrayTypeNode with BaseReferenceTypeNode with SwitchEnumConstantLabel with SwitchDefaultLabel with SwitchExpressionLabel with ArrayDimensionNode with ArrayInitializerNode with FormalParameterDeclNode with CatchTypeNode with PackageDeclarationNode with ExpressionStatement with DoWhileStatementNode with SwitchStatementNode with ForLoopStatementNode with ReturnStatementNode with AssertStatementNode with BreakStatementNode with AnnotationTypeDeclarationNode with WhileStatementNode with LocalVariableDeclarationStatementNode with SynchronizedStatementNode with EmptyStatementNode with ThrowStatementNode with TryCatchStatementNode with IfStatementNode with ElseStatementNode with ContinueStatementNode with VariableDeclarationNode with TypeArgumentsNode with CatchClauseNode with EnumConstantNode with InterfaceDeclarationNode with ClassDeclarationNode with FieldDeclarationNode with AnnotationMethodNode with AnnotationMethodOrConstantNode with MethodDeclarationNode with EnumDeclarationNode with EmptyDeclarationNode with BlockDeclarationNode with TypeListNode with AbsentBodyNode with BlockNode with TypeParametersNode with AnnotationNode with ElementValuesNode with EnumBodyNode with ArrayExpressionCreatorNode with ConstructorCreatorNode with ArrayCreatorNode with UnboundConditionalExpressionNode with PrefixOperatorExpressionNode with InnerConstructorInvocationSelectorNode with DimExpressionNode with ArrayAccessSelectorNode with BinaryExpressionNode with ReferenceTypeBoxedExpression with IdentifierWithNonWildCardTypeArgumentNode with CastExpressionNode with ClassLiteralExpressionNode with MethodInvocationNode with MemberAccessNode with QualifiedIdentifierNode with ConditionalExpressionNode with PostfixOperatorExpressionNode with ExpressionListNode with CompilationUnitNode with LabelNode with TypeParameterNode with KeywordModifierNode with IdentifierNode with PrimitiveTypeNode with OperatorNode with KeywordNode with TextFragmentNode with SeparatorNode with LiteralNode with IntegerLiteralNode with StringLiteralNode with FloatingPointLiteralNode with CharacterLiteralNode with NullLiteralNode with BooleanLiteralNode with ClassRelationshipNode with ElementValuePairNode with FormalParametersNode with ResourceNode with ElementValueArrayInitializerNode with ClassBodyNode with InterfaceRelationshipNode with SwitchBlockStatementGroupNode with ImportDeclarationNode with ResourceSpecificationNode with ForExpressionControlNode with ForEachControlNode with ForVarControlNode with XmlIslandNode with ElementValuePairsNode with ElementValueNode <: AnyRef]] forSome {type ?0 <: Int, type ?0 <: Double, type ?0 <: Float, type ?0 <: Boolean, type ?0 <: Long, type ?0 <: Char, type ?0 <: Void, type ?0 <: Byte, type ?0 <: Short}
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def deserialize(json: String): StackOverflowArtifact

    Deserializes a string contaning a JSON to a StackOverflowArtifact.

    Deserializes a string contaning a JSON to a StackOverflowArtifact.

    json

    a json serialization of a Stack Overflow Artifact.

    returns

    a StackOverflowArtifact.

  9. def deserializeFromFile(file: File): StackOverflowArtifact

    Reads a json file and deserializes to a StackOverflowArtifact

    Reads a json file and deserializes to a StackOverflowArtifact

    file

    a json file.

    returns

    a StackOverflowArtifact.

  10. def deserializeFromFile(fileName: String): StackOverflowArtifact

    Reads a json file and deserializes to a StackOverflowArtifact

    Reads a json file and deserializes to a StackOverflowArtifact

    fileName

    a json file.

    returns

    a StackOverflowArtifact.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. implicit val formats: Formats

    Implicit json formats for serialization / deserialization.

    Implicit json formats for serialization / deserialization.

    Supports custom type attributes, dates, and enum serialization by name.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val javadocElementTypes: List[Class[_ >: ?0 with ?0 with JavadocVersionTagNode with JavadocSinceTagNode with JavadocReturnTagNode with JavadocLiteralTagNode with JavadocDeprecatedTagNode with JavadocXmlReferenceNode with JavadocStringReferenceNode with JavadocFieldReferenceNode with JavadocMethodReferenceNode with JavadocClassReferenceNode with JavadocPackageReferenceNode with JavadocCommentNode with JavadocContentsNode with JavadocLinkPlainTagNode with JavadocLinkTagNode with JavadocValueTagNode with JavadocSeeTagNode with JavadocAuthorTagNode with JavadocAuthorNode with JavadocThrowsTagNode with JavadocGenericParamTagNode with JavadocParamTagNode with JavadocCustomTagNode with JavadocDocumentationNode with JavadocDescriptionNode <: Product]] forSome {type ?0 <: JavadocInheritDocTagNode, type ?0 <: JavadocDocRootTagNode}
  19. val metaInformationType: List[Class[_ >: AbsentMetaInformation with CodeInvocationMetaInformation with CodeMethodDeclarationsMetaInformation with CodeTypeDeclarationsMetaInformation with CodeTypesMetaInformation with CodeVariablesMetaInformation with NaturalLanguageMetaInformation with SentimentAnalysisMetaInformation with CodeReadabilityMetaInformation with TextReadabilityMetaInformation with CodeIdentifiersMetaInformation with JsonMetaInformation with XmlTagsMetaInformation <: MetaInformation[_ >: AbsentMetaInformation with CodeInvocationMetaInformation with CodeMethodDeclarationsMetaInformation with CodeTypeDeclarationsMetaInformation with CodeTypesMetaInformation with CodeVariablesMetaInformation with NaturalLanguageMetaInformation with SentimentAnalysisMetaInformation with CodeReadabilityMetaInformation with TextReadabilityMetaInformation with CodeIdentifiersMetaInformation with JsonMetaInformation with XmlTagsMetaInformation <: Product with Serializable with JsonSerializable] with Product with Serializable]]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. def serialize(artifact: Artifact): String

    Serializes an artifact to a string.

    Serializes an artifact to a string.

    artifact

    an artifact to serialize.

    returns

    a string containing a JSON serialization of the artifact.

  24. def serializePretty(artifact: Artifact): String

    Serializes an artifact to a pretty printed string.

    Serializes an artifact to a pretty printed string.

    artifact

    an artifact to serialize.

    returns

    a string containing a JSON serialization of the artifact.

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. val types: List[Class[_ >: AbsentMetaInformation with CodeInvocationMetaInformation with CodeMethodDeclarationsMetaInformation with CodeTypeDeclarationsMetaInformation with CodeTypesMetaInformation with CodeVariablesMetaInformation with NaturalLanguageMetaInformation with SentimentAnalysisMetaInformation with CodeReadabilityMetaInformation with TextReadabilityMetaInformation with CodeIdentifiersMetaInformation with JsonMetaInformation with XmlTagsMetaInformation with CompilationUnitPreambleNode with MissingExpressionNode with GenericEmbeddedContentsNode with BlockCommentNode with InlineCommentNode with MethodReferenceNode with LambdaParametersNode with LambdaBodyBlockNode with LambdaBodyExpressionNode with LambdaExpressionNode with JsonMemberNode with JsonObjectNode with JsonStringNode with JsonNullNode with JsonBooleanNode with JsonFloatNode with JsonIntNode with JsonArrayNode with StackTraceThreadNameNode with SourceLocationNode with StackTraceMoreExceptions with StackTraceNode with StackTraceLineNode with ExceptionMessageNode with HASTNodeSequence with XmlComposedNode with XmlSingleNode with XmlPrologNode with XmlCommentNode with XmlTextNode with XmlCDATANode with XmlDocumentNode with XmlAttributeNode with XmlNameNode with ThrownExceptionsNode with VariableExpressionInitializerNode with ParameterizedTypeNode with SuperTypeBoundNode with ExtendsTypeBoundNode with WildcardTypeArgumentNode with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ?0 with ArrayTypeNode with BaseReferenceTypeNode with SwitchEnumConstantLabel with SwitchDefaultLabel with SwitchExpressionLabel with ArrayDimensionNode with ArrayInitializerNode with FormalParameterDeclNode with CatchTypeNode with PackageDeclarationNode with ExpressionStatement with DoWhileStatementNode with SwitchStatementNode with ForLoopStatementNode with ReturnStatementNode with AssertStatementNode with BreakStatementNode with AnnotationTypeDeclarationNode with WhileStatementNode with LocalVariableDeclarationStatementNode with SynchronizedStatementNode with EmptyStatementNode with ThrowStatementNode with TryCatchStatementNode with IfStatementNode with ElseStatementNode with ContinueStatementNode with VariableDeclarationNode with TypeArgumentsNode with CatchClauseNode with EnumConstantNode with InterfaceDeclarationNode with ClassDeclarationNode with FieldDeclarationNode with AnnotationMethodNode with AnnotationMethodOrConstantNode with MethodDeclarationNode with EnumDeclarationNode with EmptyDeclarationNode with BlockDeclarationNode with TypeListNode with AbsentBodyNode with BlockNode with TypeParametersNode with AnnotationNode with ElementValuesNode with EnumBodyNode with ArrayExpressionCreatorNode with ConstructorCreatorNode with ArrayCreatorNode with UnboundConditionalExpressionNode with PrefixOperatorExpressionNode with InnerConstructorInvocationSelectorNode with DimExpressionNode with ArrayAccessSelectorNode with BinaryExpressionNode with ReferenceTypeBoxedExpression with IdentifierWithNonWildCardTypeArgumentNode with CastExpressionNode with ClassLiteralExpressionNode with MethodInvocationNode with MemberAccessNode with QualifiedIdentifierNode with ConditionalExpressionNode with PostfixOperatorExpressionNode with ExpressionListNode with CompilationUnitNode with LabelNode with TypeParameterNode with KeywordModifierNode with IdentifierNode with PrimitiveTypeNode with OperatorNode with KeywordNode with TextFragmentNode with SeparatorNode with LiteralNode with IntegerLiteralNode with StringLiteralNode with FloatingPointLiteralNode with CharacterLiteralNode with NullLiteralNode with BooleanLiteralNode with ClassRelationshipNode with ElementValuePairNode with FormalParametersNode with ResourceNode with ElementValueArrayInitializerNode with ClassBodyNode with InterfaceRelationshipNode with SwitchBlockStatementGroupNode with ImportDeclarationNode with ResourceSpecificationNode with ForExpressionControlNode with ForEachControlNode with ForVarControlNode with XmlIslandNode with ElementValuePairsNode with ElementValueNode with NaturalLanguageTaggedUnit with CodeTaggedUnit with XmlSourceInfo with StackOverflowQuestion with StackOverflowAnswer with StackOverflowComment with StackOverflowArtifact with StackOverflowUser with ?0 with ?0 with JavadocVersionTagNode with JavadocSinceTagNode with JavadocReturnTagNode with JavadocLiteralTagNode with JavadocDeprecatedTagNode with JavadocXmlReferenceNode with JavadocStringReferenceNode with JavadocFieldReferenceNode with JavadocMethodReferenceNode with JavadocClassReferenceNode with JavadocPackageReferenceNode with JavadocCommentNode with JavadocContentsNode with JavadocLinkPlainTagNode with JavadocLinkTagNode with JavadocValueTagNode with JavadocSeeTagNode with JavadocAuthorTagNode with JavadocAuthorNode with JavadocThrowsTagNode with JavadocGenericParamTagNode with JavadocParamTagNode with JavadocCustomTagNode with JavadocDocumentationNode with JavadocDescriptionNode <: AnyRef]] forSome {type ?0 <: Char, type ?0 <: Boolean, type ?0 <: Float, type ?0 <: Short, type ?0 <: JavadocDocRootTagNode, type ?0 <: Void, type ?0 <: Long, type ?0 <: Byte, type ?0 <: JavadocInheritDocTagNode, type ?0 <: Double, type ?0 <: Int}
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped