org.jdmp.core.script.jdmp
Class Translation

java.lang.Object
  extended by org.jdmp.core.script.jdmp.analysis.AnalysisAdapter
      extended by org.jdmp.core.script.jdmp.analysis.DepthFirstAdapter
          extended by org.jdmp.core.script.jdmp.Translation
All Implemented Interfaces:
Analysis, Switch

public class Translation
extends DepthFirstAdapter


Field Summary
static String ANS
           
 
Constructor Summary
Translation(Module module)
           
 
Method Summary
 void defaultOut(Node node)
           
 Object executeFunction(PName name, PArgumentList arguments)
           
 Result getResult()
           
 void outAArrayAssignment(AArrayAssignment node)
           
 void outAIdentifierAssignment(AIdentifierAssignment node)
           
 void outAStatement(AStatement node)
           
 
Methods inherited from class org.jdmp.core.script.jdmp.analysis.DepthFirstAdapter
caseAAndLevel7, caseAArgumentListArgumentList, caseAArray, caseAArrayAssignment, caseAArrayMatrix, caseAAssignmentCommand, caseABitComplementLevel2, caseABooleanLiteral, caseAColumn, caseAColumnMatrix, caseACommaValue, caseAComplementLevel2, caseADotLdivLevel3, caseADotMultLevel3, caseADotPowerLevel1, caseADotRdivLevel3, caseADotTransposeLevel1, caseAEmptyFunction, caseAEmptyMatrix, caseAEqLevel6, caseAExpressionArgumentList, caseAExpressionLevel0, caseAFalseBoolean, caseAFloatingPointLiteral, caseAFunctionLevel0, caseAGteqLevel6, caseAGtLevel6, caseAIdentifierAssignment, caseAIdentifierLevel0, caseAIntegerLiteral, caseALdivLevel3, caseALevel0Level1, caseALevel10Expression, caseALevel1Level2, caseALevel2Level3, caseALevel3Level4, caseALevel4Level5, caseALevel5Level6, caseALevel6Level7, caseALevel7Level8, caseALevel8Level9, caseALevel9Level10, caseALiteralLevel0, caseALogicalAndLevel9, caseALogicalOrLevel10, caseALteqLevel6, caseALtLevel6, caseAMatrixLevel0, caseAMinusLevel2, caseAMinusLevel4, caseAMultLevel3, caseANeqLevel6, caseAOrLevel8, caseAParameterFunction, caseAPlusLevel2, caseAPlusLevel4, caseAPowerLevel1, caseAQualifiedName, caseARangeLevel5, caseARdivLevel3, caseARow, caseARowMatrix, caseAScript, caseASemicolonRow, caseASemicolonValue, caseASimpleName, caseAStatement, caseAStatementCommand, caseAStepsize, caseAStringLiteral, caseATransposeLevel1, caseATrueBoolean, caseAValueMatrix, caseStart, defaultIn, inAAndLevel7, inAArgumentListArgumentList, inAArray, inAArrayAssignment, inAArrayMatrix, inAAssignmentCommand, inABitComplementLevel2, inABooleanLiteral, inAColumn, inAColumnMatrix, inACommaValue, inAComplementLevel2, inADotLdivLevel3, inADotMultLevel3, inADotPowerLevel1, inADotRdivLevel3, inADotTransposeLevel1, inAEmptyFunction, inAEmptyMatrix, inAEqLevel6, inAExpressionArgumentList, inAExpressionLevel0, inAFalseBoolean, inAFloatingPointLiteral, inAFunctionLevel0, inAGteqLevel6, inAGtLevel6, inAIdentifierAssignment, inAIdentifierLevel0, inAIntegerLiteral, inALdivLevel3, inALevel0Level1, inALevel10Expression, inALevel1Level2, inALevel2Level3, inALevel3Level4, inALevel4Level5, inALevel5Level6, inALevel6Level7, inALevel7Level8, inALevel8Level9, inALevel9Level10, inALiteralLevel0, inALogicalAndLevel9, inALogicalOrLevel10, inALteqLevel6, inALtLevel6, inAMatrixLevel0, inAMinusLevel2, inAMinusLevel4, inAMultLevel3, inANeqLevel6, inAOrLevel8, inAParameterFunction, inAPlusLevel2, inAPlusLevel4, inAPowerLevel1, inAQualifiedName, inARangeLevel5, inARdivLevel3, inARow, inARowMatrix, inAScript, inASemicolonRow, inASemicolonValue, inASimpleName, inAStatement, inAStatementCommand, inAStepsize, inAStringLiteral, inATransposeLevel1, inATrueBoolean, inAValueMatrix, inStart, outAAndLevel7, outAArgumentListArgumentList, outAArray, outAArrayMatrix, outAAssignmentCommand, outABitComplementLevel2, outABooleanLiteral, outAColumn, outAColumnMatrix, outACommaValue, outAComplementLevel2, outADotLdivLevel3, outADotMultLevel3, outADotPowerLevel1, outADotRdivLevel3, outADotTransposeLevel1, outAEmptyFunction, outAEmptyMatrix, outAEqLevel6, outAExpressionArgumentList, outAExpressionLevel0, outAFalseBoolean, outAFloatingPointLiteral, outAFunctionLevel0, outAGteqLevel6, outAGtLevel6, outAIdentifierLevel0, outAIntegerLiteral, outALdivLevel3, outALevel0Level1, outALevel10Expression, outALevel1Level2, outALevel2Level3, outALevel3Level4, outALevel4Level5, outALevel5Level6, outALevel6Level7, outALevel7Level8, outALevel8Level9, outALevel9Level10, outALiteralLevel0, outALogicalAndLevel9, outALogicalOrLevel10, outALteqLevel6, outALtLevel6, outAMatrixLevel0, outAMinusLevel2, outAMinusLevel4, outAMultLevel3, outANeqLevel6, outAOrLevel8, outAParameterFunction, outAPlusLevel2, outAPlusLevel4, outAPowerLevel1, outAQualifiedName, outARangeLevel5, outARdivLevel3, outARow, outARowMatrix, outAScript, outASemicolonRow, outASemicolonValue, outASimpleName, outAStatementCommand, outAStepsize, outAStringLiteral, outATransposeLevel1, outATrueBoolean, outAValueMatrix, outStart
 
Methods inherited from class org.jdmp.core.script.jdmp.analysis.AnalysisAdapter
caseEOF, caseTAnd, caseTAssign, caseTBitComplement, caseTColon, caseTComma, caseTComplement, caseTDocumentationComment, caseTDot, caseTDotLdiv, caseTDotMult, caseTDotPower, caseTDotRdiv, caseTDotTranspose, caseTEndOfLineComment, caseTEq, caseTFalse, caseTFloatingPoint, caseTGt, caseTGteq, caseTIdentifier, caseTInteger, caseTLBrace, caseTLBracket, caseTLdiv, caseTLogicalAnd, caseTLogicalOr, caseTLParenthese, caseTLt, caseTLteq, caseTMatlabComment, caseTMinus, caseTMult, caseTNeq, caseTNull, caseTOr, caseTPlus, caseTPower, caseTQuestion, caseTRBrace, caseTRBracket, caseTRdiv, caseTRParenthese, caseTSemicolon, caseTString, caseTTraditionalComment, caseTTranspose, caseTTrue, caseTWhiteSpace, defaultCase, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANS

public static final String ANS
See Also:
Constant Field Values
Constructor Detail

Translation

public Translation(Module module)
Method Detail

defaultOut

public void defaultOut(Node node)
Overrides:
defaultOut in class DepthFirstAdapter

getResult

public Result getResult()

outAArrayAssignment

public void outAArrayAssignment(AArrayAssignment node)
Overrides:
outAArrayAssignment in class DepthFirstAdapter

outAIdentifierAssignment

public void outAIdentifierAssignment(AIdentifierAssignment node)
Overrides:
outAIdentifierAssignment in class DepthFirstAdapter

executeFunction

public Object executeFunction(PName name,
                              PArgumentList arguments)
                       throws Exception
Throws:
Exception

outAStatement

public void outAStatement(AStatement node)
Overrides:
outAStatement in class DepthFirstAdapter


Copyright © 2009. All Rights Reserved.