jme3tools.shadercheck
Class CgcValidator

java.lang.Object
  extended by jme3tools.shadercheck.CgcValidator
All Implemented Interfaces:
Validator

public class CgcValidator
extends java.lang.Object
implements Validator


Constructor Summary
CgcValidator()
           
 
Method Summary
 java.lang.String getInstalledVersion()
          Returns the tool version as a string, must return null if the tool is not installed.
 java.lang.String getName()
          Returns the name of the validation tool
 boolean isInstalled()
          Returns true if the tool is installed on the system, false otherwise.
 void validate(Shader shader, java.lang.StringBuilder results)
          Validates the given shader to make sure it follows all requirements of the shader language specified as Shader.getLanguage().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CgcValidator

public CgcValidator()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Validator
Returns the name of the validation tool

Specified by:
getName in interface Validator

isInstalled

public boolean isInstalled()
Description copied from interface: Validator
Returns true if the tool is installed on the system, false otherwise.

Specified by:
isInstalled in interface Validator

getInstalledVersion

public java.lang.String getInstalledVersion()
Description copied from interface: Validator
Returns the tool version as a string, must return null if the tool is not installed.

Specified by:
getInstalledVersion in interface Validator

validate

public void validate(Shader shader,
                     java.lang.StringBuilder results)
Description copied from interface: Validator
Validates the given shader to make sure it follows all requirements of the shader language specified as Shader.getLanguage(). The results of the validation will be written into the results argument.

Specified by:
validate in interface Validator
Parameters:
shader - The shader to validate
results - The storage for the validation results