object ArtifactSerializer
Serializer/Deserializer utility for artifacts.
This version works only for StackOverflowArtifact.
- Alphabetic
- By Inheritance
- ArtifactSerializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val artifactElementTypes: List[Class[_ >: NaturalLanguageTaggedUnit with CodeTaggedUnit with XmlSourceInfo with StackOverflowQuestion with StackOverflowAnswer with StackOverflowComment with StackOverflowArtifact with StackOverflowUser <: JsonSerializable]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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}
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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}
- 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]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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.
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- 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}
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )