org.bbqjs.compiler.language.check
Class CompiledJavaScriptFile

java.lang.Object
  extended by org.bbqjs.compiler.language.check.CompiledJavaScriptFile

public class CompiledJavaScriptFile
extends Object

This class represents a compiled JavaScript file - we use it to ensure that it contains the use of a given language translation. This lets us warn the user when redundant language translations are found.


Constructor Summary
CompiledJavaScriptFile()
           
CompiledJavaScriptFile(File file)
           
 
Method Summary
 boolean contains(String key)
           
 boolean containsArray(String key)
           
protected  String getArrayString(String string)
           
 String getContents()
           
 String getName()
           
 int occurrencesOf(String key)
           
 void setContents(String contents)
           
 void setFile(File file)
           
 void setFile(URL file)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledJavaScriptFile

public CompiledJavaScriptFile()

CompiledJavaScriptFile

public CompiledJavaScriptFile(File file)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getContents

public String getContents()

setContents

public void setContents(String contents)

setFile

public void setFile(File file)

setFile

public void setFile(URL file)

contains

public boolean contains(String key)

occurrencesOf

public int occurrencesOf(String key)

containsArray

public boolean containsArray(String key)

getArrayString

protected String getArrayString(String string)


Copyright © 2012. All Rights Reserved.