coins.driver
クラス Suffix

java.lang.Object
  |
  +--coins.driver.Suffix

public class Suffix
extends java.lang.Object

An object of this class represents a `suffix rule' of a suffix. Using the object, whether a certain pass (preprocessing, compilation and assemble) should be applied to a source file with the suffix or not can be inspeced and a suffix of output file after the pass can be obtained.
There is no public constructor of this class. Use class SuffixFactory to obtain an instance.


フィールドの概要
(パッケージプライベート)  boolean fIsAssembleRequired
           
(パッケージプライベート)  boolean fIsCompileRequired
           
(パッケージプライベート)  boolean fIsPreprocessRequired
           
 
コンストラクタの概要
(パッケージプライベート) Suffix(java.lang.String pSuffixString, java.lang.String pSuffixOption, java.lang.String pLanguageName, java.lang.String pDescription, java.lang.String pAfterPreprocess, java.lang.String pAfterCompile, java.lang.String pAfterAssemble, boolean pIsPreprocessRequired, boolean pIsCompileRequired, boolean pIsAssembleRequired)
           
 
メソッドの概要
 Suffix afterAssemble()
          Returns a suffix of output file after assembling of a file with this suffix.
 Suffix afterCompile()
          Returns a suffix of output file after compilation of a file with this suffix.
 Suffix afterPreprocess()
          Returns a suffix of output file after preprocessing a file with this suffix.
(パッケージプライベート)  void checkIntegrity(CompileSpecification pSpec)
          Checks integrity conditions of this object.
 java.lang.String getDescription()
          Returns a description of this suffix.
 java.lang.String getLanguageName()
          Returns a name of a programming language in which the file of this suffix is written.
 java.lang.String getSuffixOption()
          Returns a suffix option, specified to this suffix rule.
 boolean isAssembleRequired()
          Tests if an assembling is required for a source file with this suffix.
 boolean isCompileRequired()
          Tests if a compilation is required for a source file with this suffix.
 boolean isPreprocessRequired()
          Tests if a preprocessing is required for a source file with this suffix.
 java.lang.String toString()
          Returns a string representation of this suffix.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

fIsPreprocessRequired

boolean fIsPreprocessRequired

fIsCompileRequired

boolean fIsCompileRequired

fIsAssembleRequired

boolean fIsAssembleRequired
コンストラクタの詳細

Suffix

Suffix(java.lang.String pSuffixString,
       java.lang.String pSuffixOption,
       java.lang.String pLanguageName,
       java.lang.String pDescription,
       java.lang.String pAfterPreprocess,
       java.lang.String pAfterCompile,
       java.lang.String pAfterAssemble,
       boolean pIsPreprocessRequired,
       boolean pIsCompileRequired,
       boolean pIsAssembleRequired)
メソッドの詳細

getDescription

public java.lang.String getDescription()
Returns a description of this suffix.

戻り値:
a description of this suffix.

getLanguageName

public java.lang.String getLanguageName()
Returns a name of a programming language in which the file of this suffix is written.

戻り値:
a programming language name

getSuffixOption

public java.lang.String getSuffixOption()
Returns a suffix option, specified to this suffix rule. If no suffix option is specified, null is returned.

戻り値:
suffix option, or null if not specified.

afterPreprocess

public Suffix afterPreprocess()
Returns a suffix of output file after preprocessing a file with this suffix.

戻り値:
a suffix of preprocessed file.

afterCompile

public Suffix afterCompile()
Returns a suffix of output file after compilation of a file with this suffix.

戻り値:
a suffix of compiled file.

afterAssemble

public Suffix afterAssemble()
Returns a suffix of output file after assembling of a file with this suffix.

戻り値:
a suffix of assembled file.

isPreprocessRequired

public boolean isPreprocessRequired()
Tests if a preprocessing is required for a source file with this suffix.

戻り値:
true if a preprocessing is required, false otherwise.

isCompileRequired

public boolean isCompileRequired()
Tests if a compilation is required for a source file with this suffix.

戻り値:
true if a compilation is required, false otherwise.

isAssembleRequired

public boolean isAssembleRequired()
Tests if an assembling is required for a source file with this suffix.

戻り値:
true if an assembling is required, false otherwise.

toString

public java.lang.String toString()
Returns a string representation of this suffix.

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
a string representation of this suffix.

checkIntegrity

void checkIntegrity(CompileSpecification pSpec)
Checks integrity conditions of this object.

パラメータ:
pSpec - a CompileSpecification object.