public class SkinTranscoder extends TranscoderBase
baseClassQName, byteArrayNamePostfix, CORE_PACKAGE, data, source, swcSource, UTILS_PACKAGE, workspace
Constructor and Description |
---|
SkinTranscoder(EmbedData data,
Workspace workspace,
EmbedData.SkinClassInfo skinClassInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
analyze(ISourceLocation location,
Collection<ICompilerProblem> problems)
Analyze the attributes
|
byte[] |
buildABC(ICompilerProject project,
Collection<ICompilerProblem> problems)
Build ABC to represent the embedded asset class
|
FileNode |
buildAST(Collection<ICompilerProblem> problems,
String filename)
Build an AST to represent the embedded asset class
|
protected boolean |
checkAttributeValues(ISourceLocation location,
Collection<ICompilerProblem> problems)
Verify the attributes are valid for the specific transcoder
|
protected Map<String,ICharacterTag> |
doTranscode(Collection<ITag> tags,
Collection<ICompilerProblem> problems)
Transcode the embedded asset
|
boolean |
equals(Object o) |
int |
hashCode() |
protected boolean |
setAttribute(EmbedAttribute attribute)
Stores the supported attribute of the transcoder
|
buildBinaryDataTag, getBaseClassName, getBaseClassQName, getDataBytes, getDataStream, getTags
public SkinTranscoder(EmbedData data, Workspace workspace, EmbedData.SkinClassInfo skinClassInfo)
data
- The embedding data.workspace
- The workspace.public boolean analyze(ISourceLocation location, Collection<ICompilerProblem> problems)
analyze
in class TranscoderBase
location
- Source location from where the embed came fromproblems
- Any problems discovered in the EmbedNodeprotected boolean setAttribute(EmbedAttribute attribute)
setAttribute
in class TranscoderBase
protected boolean checkAttributeValues(ISourceLocation location, Collection<ICompilerProblem> problems)
checkAttributeValues
in class TranscoderBase
protected Map<String,ICharacterTag> doTranscode(Collection<ITag> tags, Collection<ICompilerProblem> problems)
doTranscode
in class TranscoderBase
tags
- The collection of transcoded asset tagsproblems
- The collection of compiler problems to which this method will add problems.public FileNode buildAST(Collection<ICompilerProblem> problems, String filename)
buildAST
in class TranscoderBase
problems
- The collection of compiler problems to which this method will add problems.filename
- The path to the file being embedded.public byte[] buildABC(ICompilerProject project, Collection<ICompilerProblem> problems)
buildABC
in class TranscoderBase
project
- The compiler project.problems
- The collecton of compiler problems to which this method will add problems.public boolean equals(Object o)
equals
in class TranscoderBase
public int hashCode()
hashCode
in class TranscoderBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.