antlr.jarstringutils是哪个jar包下

antlr-2.7.7.jar Detail -
Search: & &
Package/class Name
keywords in source code
Jar file name
Classes in jar file
antlr-2.7.7.jar
Size: 434.85 KB
Last Modified: Oct 1, 2008
META-INF/&
&70.0 bytes
&antlr/ANTLRError.class285.0 bytes
&antlr/ANTLRException.class486.0 bytes
&antlr/ANTLRGrammarParseBehavior.class2.07 KB
&antlr/ANTLRHashString.class1.56 KB
&antlr/ANTLRLexer.class17.56 KB
&antlr/ANTLRParser.class27.44 KB
&antlr/ANTLRStringBuffer.class1.15 KB
&antlr/ANTLRTokdefLexer.class8.21 KB
&antlr/ANTLRTokdefParser.class3.99 KB
&antlr/ANTLRTokdefParserTokenTypes.class584.0 bytes
&antlr/ANTLRTokenTypes.class2.18 KB
&antlr/ASTFactory.class5.77 KB
&antlr/ASTIterator.class964.0 bytes
&antlr/ASTNULLType.class1.78 KB
&antlr/ASTPair.class885.0 bytes
&antlr/ASTVisitor.class152.0 bytes
&antlr/ASdebug/&
& &antlr/ASdebug/ASDebugStream.class625.0 bytes
& &antlr/ASdebug/IASDebugStream.class243.0 bytes
& &antlr/ASdebug/TokenOffsetInfo.class382.0 bytes
&antlr/ActionElement.class1.2 KB
&antlr/ActionTransInfo.class687.0 bytes
&antlr/Alternative.class1.08 KB
&antlr/AlternativeBlock.class5.27 KB
&antlr/AlternativeElement.class868.0 bytes
&antlr/BaseAST.class6.29 KB
&antlr/BlockContext.class897.0 bytes
&antlr/BlockEndElement.class711.0 bytes
&antlr/BlockWithImpliedExitPath.class602.0 bytes
&antlr/ByteBuffer.class785.0 bytes
&antlr/CSharpBlockFinishingInfo.class539.0 bytes
&antlr/CSharpCharFormatter.class1.41 KB
&antlr/CSharpCodeGenerator.class58.95 KB
&antlr/CSharpNameSpace.class670.0 bytes
&antlr/CharBuffer.class770.0 bytes
&antlr/CharFormatter.class293.0 bytes
&antlr/CharLiteralElement.class1.19 KB
&antlr/CharQueue.class1010.0 bytes
&antlr/CharRangeElement.class1.79 KB
&antlr/CharScanner.class7.7 KB
&antlr/CharStreamException.class245.0 bytes
&antlr/CharStreamIOException.class411.0 bytes
&antlr/CodeGenerator.class8.9 KB
&antlr/CommonAST.class1008.0 bytes
&antlr/CommonASTWithHiddenTokens.class852.0 bytes
&antlr/CommonHiddenStreamToken.class821.0 bytes
&antlr/CommonToken.class1.18 KB
&antlr/CppBlockFinishingInfo.class528.0 bytes
&antlr/CppCharFormatter.class1.41 KB
&antlr/CppCodeGenerator.class67.62 KB
&antlr/DefaultFileLineFormatter.class700.0 bytes
&antlr/DefaultJavaCodeGeneratorPrintWriterManager.class2.54 KB
&antlr/DefaultToolErrorHandler.class2.98 KB
&antlr/DefineGrammarSymbols.class14.42 KB
&antlr/DiagnosticCodeGenerator.class19.3 KB
&antlr/DocBookCodeGenerator.class12.83 KB
&antlr/DumpASTVisitor.class1.24 KB
&antlr/ExceptionHandler.class350.0 bytes
&antlr/ExceptionSpec.class542.0 bytes
&antlr/FileCopyException.class240.0 bytes
&antlr/FileLineFormatter.class622.0 bytes
&antlr/Grammar.class5.45 KB
&antlr/GrammarAnalyzer.class221.0 bytes
&antlr/GrammarAtom.class1.64 KB
&antlr/GrammarElement.class917.0 bytes
&antlr/GrammarSymbol.class464.0 bytes
&antlr/HTMLCodeGenerator.class12.11 KB
&antlr/ImportVocabTokenManager.class2.5 KB
&antlr/InputBuffer.class1.55 KB
&antlr/JavaBlockFinishingInfo.class535.0 bytes
&antlr/JavaCharFormatter.class1.39 KB
&antlr/JavaCodeGenerator.class54.95 KB
&antlr/JavaCodeGeneratorPrintWriterManager.class527.0 bytes
&antlr/LLkAnalyzer.class16.22 KB
&antlr/LLkGrammarAnalyzer.class1.27 KB
&antlr/LLkParser.class2.08 KB
&antlr/LexerGrammar.class3.29 KB
&antlr/LexerSharedInputState.class1.3 KB
&antlr/Lookahead.class3.04 KB
&antlr/MakeGrammar.class16.87 KB
&antlr/MismatchedCharException.class2.43 KB
&antlr/MismatchedTokenException.class3.49 KB
&antlr/NameSpace.class1.39 KB
&antlr/NoViableAltException.class1.11 KB
&antlr/NoViableAltForCharException.class1.18 KB
&antlr/OneOrMoreBlock.class1023.0 bytes
&antlr/ParseTree.class967.0 bytes
&antlr/ParseTreeRule.class1.29 KB
&antlr/ParseTreeToken.class700.0 bytes
&antlr/Parser.class7.49 KB
&antlr/ParserGrammar.class1.97 KB
&antlr/ParserSharedInputState.class631.0 bytes
&antlr/PreservingFileWriter.class1.89 KB
&antlr/PrintWriterWithSMAP.class3.67 KB
&antlr/PythonBlockFinishingInfo.class539.0 bytes
&antlr/PythonCharFormatter.class1.47 KB
&antlr/PythonCodeGenerator.class53.31 KB
&antlr/RecognitionException.class1.33 KB
&antlr/RuleBlock.class5.45 KB
&antlr/RuleEndElement.class724.0 bytes
&antlr/RuleRefElement.class1.62 KB
&antlr/RuleSymbol.class1.13 KB
&antlr/SemanticException.class471.0 bytes
&antlr/SimpleTokenManager.class2.87 KB
&antlr/StringLiteralElement.class1.99 KB
&antlr/StringLiteralSymbol.class425.0 bytes
&antlr/StringUtils.class1.12 KB
&antlr/SynPredBlock.class1.02 KB
&antlr/Token.class1.58 KB
&antlr/TokenBuffer.class1.55 KB
&antlr/TokenManager.class821.0 bytes
&antlr/TokenQueue.class1.04 KB
&antlr/TokenRangeElement.class1.71 KB
&antlr/TokenRefElement.class1.59 KB
&antlr/TokenStream.class202.0 bytes
&antlr/TokenStreamBasicFilter.class1.24 KB
&antlr/TokenStreamException.class499.0 bytes
&antlr/TokenStreamHiddenTokenFilter.class2.15 KB
&antlr/TokenStreamIOException.class414.0 bytes
&antlr/TokenStreamRecognitionException.class523.0 bytes
&antlr/TokenStreamRetryException.class244.0 bytes
&antlr/TokenStreamRewriteEngine$1.class700.0 bytes
&antlr/TokenStreamRewriteEngine$DeleteOp.class394.0 bytes
&antlr/TokenStreamRewriteEngine$InsertBeforeOp.class660.0 bytes
&antlr/TokenStreamRewriteEngine$ReplaceOp.class710.0 bytes
&antlr/TokenStreamRewriteEngine$RewriteOperation.class1.06 KB
&antlr/TokenStreamRewriteEngine.class7.39 KB
&antlr/TokenStreamSelector.class2.31 KB
&antlr/TokenSymbol.class765.0 bytes
&antlr/TokenWithIndex.class879.0 bytes
&antlr/Tool.class11.76 KB
&antlr/ToolErrorHandler.class318.0 bytes
&antlr/TreeBlockContext.class556.0 bytes
&antlr/TreeElement.class1.38 KB
&antlr/TreeParser.class3.25 KB
&antlr/TreeParserSharedInputState.class274.0 bytes
&antlr/TreeSpecifierNode.class888.0 bytes
&antlr/TreeWalkerGrammar.class1.73 KB
&antlr/Utils.class1.79 KB
&antlr/Version.class427.0 bytes
&antlr/WildcardElement.class1.21 KB
&antlr/ZeroOrMoreBlock.class1.0 KB
&antlr/actions/&
& &antlr/actions/cpp/&
& & &antlr/actions/cpp/ActionLexer.class31.05 KB
& & &antlr/actions/cpp/ActionLexerTokenTypes.class1.01 KB
& &antlr/actions/csharp/&
& & &antlr/actions/csharp/ActionLexer.class32.0 KB
& & &antlr/actions/csharp/ActionLexerTokenTypes.class1.01 KB
& &antlr/actions/java/&
& & &antlr/actions/java/ActionLexer.class30.68 KB
& & &antlr/actions/java/ActionLexerTokenTypes.class1.01 KB
& &antlr/actions/python/&
& & &antlr/actions/python/ActionLexer.class31.52 KB
& & &antlr/actions/python/ActionLexerTokenTypes.class1.04 KB
& & &antlr/actions/python/CodeLexer.class5.87 KB
& & &antlr/actions/python/CodeLexerTokenTypes.class417.0 bytes
&antlr/build/&
& &antlr/build/ANTLR$1.class590.0 bytes
& &antlr/build/ANTLR.class2.91 KB
& &antlr/build/StreamScarfer.class996.0 bytes
& &antlr/build/Tool.class3.76 KB
&antlr/collections/&
& &antlr/collections/AST.class874.0 bytes
& &antlr/collections/ASTEnumeration.class203.0 bytes
& &antlr/collections/Enumerator.class196.0 bytes
& &antlr/collections/List.class380.0 bytes
& &antlr/collections/Stack.class293.0 bytes
& &antlr/collections/impl/&
& & &antlr/collections/impl/ASTArray.class482.0 bytes
& & &antlr/collections/impl/ASTEnumerator.class1.02 KB
& & &antlr/collections/impl/BitSet.class6.37 KB
& & &antlr/collections/impl/IndexedVector.class1.26 KB
& & &antlr/collections/impl/IntRange.class556.0 bytes
& & &antlr/collections/impl/LLCell.class341.0 bytes
& & &antlr/collections/impl/LLEnumeration.class833.0 bytes
& & &antlr/collections/impl/LList.class1.78 KB
& & &antlr/collections/impl/Vector.class2.15 KB
& & &antlr/collections/impl/VectorEnumeration.class883.0 bytes
& & &antlr/collections/impl/VectorEnumerator.class881.0 bytes
&antlr/debug/&
& &antlr/debug/DebuggingCharScanner.class6.3 KB
& &antlr/debug/DebuggingInputBuffer.class1.66 KB
& &antlr/debug/DebuggingParser.class194.0 bytes
& &antlr/debug/Event.class529.0 bytes
& &antlr/debug/GuessingEvent.class582.0 bytes
& &antlr/debug/InputBufferAdapter.class660.0 bytes
& &antlr/debug/InputBufferEvent.class1.32 KB
& &antlr/debug/InputBufferEventSupport.class2.73 KB
& &antlr/debug/InputBufferListener.class306.0 bytes
& &antlr/debug/InputBufferReporter.class908.0 bytes
& &antlr/debug/LLkDebuggingParser.class7.1 KB
& &antlr/debug/ListenerBase.class224.0 bytes
& &antlr/debug/MessageAdapter.class521.0 bytes
& &antlr/debug/MessageEvent.class1.07 KB
& &antlr/debug/MessageListener.class233.0 bytes
& &antlr/debug/NewLineEvent.class836.0 bytes
& &antlr/debug/NewLineListener.class208.0 bytes
& &antlr/debug/ParseTreeDebugParser.class2.26 KB
& &antlr/debug/ParserAdapter.class1.34 KB
& &antlr/debug/ParserController.class256.0 bytes
& &antlr/debug/ParserEventSupport.class10.82 KB
& &antlr/debug/ParserListener.class358.0 bytes
& &antlr/debug/ParserMatchAdapter.class653.0 bytes
& &antlr/debug/ParserMatchEvent.class2.23 KB
& &antlr/debug/ParserMatchListener.class299.0 bytes
& &antlr/debug/ParserReporter.class1.84 KB
& &antlr/debug/ParserTokenAdapter.class534.0 bytes
& &antlr/debug/ParserTokenEvent.class1.26 KB
& &antlr/debug/ParserTokenListener.class242.0 bytes
& &antlr/debug/SemanticPredicateAdapter.class521.0 bytes
& &antlr/debug/SemanticPredicateEvent.class1.26 KB
& &antlr/debug/SemanticPredicateListener.class254.0 bytes
& &antlr/debug/SyntacticPredicateAdapter.class659.0 bytes
& &antlr/debug/SyntacticPredicateEvent.class755.0 bytes
& &antlr/debug/SyntacticPredicateListener.class329.0 bytes
& &antlr/debug/TraceAdapter.class476.0 bytes
& &antlr/debug/TraceEvent.class1.29 KB
& &antlr/debug/TraceListener.class220.0 bytes
& &antlr/debug/Tracer.class1.09 KB
& &antlr/debug/misc/&
& & &antlr/debug/misc/ASTFrame$1.class633.0 bytes
& & &antlr/debug/misc/ASTFrame$MyTreeSelectionListener.class1.26 KB
& & &antlr/debug/misc/ASTFrame.class1.47 KB
& & &antlr/debug/misc/JTreeASTModel.class1.95 KB
& & &antlr/debug/misc/JTreeASTPanel.class1.0 KB
&antlr/preprocessor/&
& &antlr/preprocessor/Grammar.class5.92 KB
& &antlr/preprocessor/GrammarFile.class2.41 KB
& &antlr/preprocessor/Hierarchy.class4.31 KB
& &antlr/preprocessor/Option.class1.1 KB
& &antlr/preprocessor/Preprocessor.class10.59 KB
& &antlr/preprocessor/PreprocessorLexer.class16.28 KB
& &antlr/preprocessor/PreprocessorTokenTypes.class1.51 KB
& &antlr/preprocessor/Rule.class3.12 KB
& &antlr/preprocessor/Tool.class3.61 KBjava-StringUtils -
- ITeye技术网站
博客分类:
工作容易遇到的:
必须要8位,不够的就拿0去补
System.out.println(StringUtils.leftPad("34", 8, "0"));
//
又或者你需要在一个数组中加入一个元素,你可以这么做:
把数组里的字符串用:连接
System.out.println(StringUtils.join(new String[]{"cat","dog","carrot","leaf","door"}, ":")
// cat:dog:carrot:leaf:door
如果你需要一个大写字母或者是需要一个字符串中的每个单词第一个字母大写,你可以这么做:
System.out.println(StringUtils.capitaliseAllWords("a sentenced to be capitalised"));
// A Sentenced To Be Capitalised
如果你需要计算一个字母在字符串中出现的个数,你可以使用countMatches方法:
System.out.println(StringUtils.countMatches("Bethany plays with army men", "e"));
// 2
甚至还有计算两字符串之间的Levenshtein-Distance
System.out.println(StringUtils.getLevenshteinDistance("David", "Jakob"));
// 4
少于5位的就用99去补 直到补足5为
System.out.println(StringUtils.leftPad("123", 5, "99"));
//99123
-----------------------------------日期的使用:
Name&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Format
ISO_DATE_FORMAT&&&&&&&&&&&&&&&&&&&&& yyyy-MM-dd""
ISO_DATE_TIME_ZONE_FORMAT&&&&&&&&&&& yyyy-MM-ddZZ"-07:00"
ISO_DATETIME_FORMAT&&&&&&&&&&&&&&&&& yyyy-MM-dd'T'HH:mm:ss"T23:22:12"
ISO_DATETIME_TIME_ZONE_FORMAT&&&&&&& yyyy-MM-dd'T'HH:mm:ssZZ"T21:13:45-07:00"
ISO_TIME_FORMAT&&&&&&&&&&&&&&&&&&&& 'T'HH:mm:ss"T04:23:22"
ISO_TIME_NO_T_FORMAT&&&&&&&&&&&&&&&& HH:mm:ss"05:12:34"
ISO_TIME_NO_T_TIME_ZONE_FORMAT&&&&&& HH:mm:ssZZ"12:32:22-07:00"
ISO_TIME_TIME_ZONE_FORMAT&&&&&&&&&&& 'T'HH:mm:ssZZ"T18:23:22-07:00"
SMTP_DATETIME_FORMAT&&&&&&&&&&&&&&&& EEE, dd MMM yyyy HH:mm:ss Z"Wed, 01 Feb :01 CST"
比较两个日期或让日期四舍五入
Date date1 = new Date();
System.out.println(DateUtils.MILLIS_IN_SECOND
+ "The time right now is &&" + date1);
Thread.currentThread().sleep(DateUtils.MILLIS_IN_SECOND);
Date date2 = new Date();
System.out.println("Is Same Instant && "
+ DateUtils.isSameInstant(date1, date2));
String[] dates = { " 11:03:26", " 11:03",
System.out.println("----88------" + dates.length);
System.out.println("----------");
// Display date in HH:mm:ss format
System.out.println("Now &&"
+ DateFormatUtils.ISO_TIME_NO_T_FORMAT.format(System
.currentTimeMillis()));
System.out.println("Date after rounding &&"
+ DateUtils.round(date1, Calendar.HOUR));
// Truncate the hour
System.out.println("Date after truncation &&"
+ DateUtils.truncate(date1, Calendar.HOUR));
//输出结果:
1000The time right now is &&Thu Sep 08 18:37:32 CST 2011
Is Same Instant && false
----88------3
一个常用的日期:
FastDateFormat formatter = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
String output = formatter.format( new Date( ) );
System.out.println(output);
==》 10:11:20
13:19:11
--------------------------------------------------------------
Now &&18:37:33
Date after rounding &&Thu Sep 08 19:00:00 CST 2011
Date after truncation &&Thu Sep 08 18:00:00 CST 2011
-------------------------------
import mons.lang.builder.ToStringB
toString :在属性类加了这个& 在其他类直接toString就可以啦
public String toString(){
return ToStringBuilder.reflectionToString(this);
}
--------------------------------------
import java.util.C
import mons.pareToB
对对象排序:
1、序列化
public class Stu implements Comparable{
private S
2、重写这个方法:
public int compareTo(Object obj) {
Stu anotherComputer = (Stu)
return new CompareToBuilder().
append(this.id, anotherComputer.id).toComparison();
}
3、ArrayList a = new ArrayList();
a.add(new Stu(234,"aer","sg","fgh"));
a.add(new Stu(456,"dfgd","df","fgh"));
a.add(new Stu(88,"ertr","hgh","gfhf"));
Collections.sort(a);
System.out.println(a);
----------------------------------------------------
检查空字符串:
StringUtils.isBlank(String str);
StringUtils.isNotBlank(String str);
缩写字符串:abbreviate()可以按照目标长度缩减字符串,若小于目标长度,最后三位字符以"..."代替
【注意有三个...】
String test = " This is a test of the abbreviation. "
System.out.println( StringUtils.abbreviate( test, 10 ) );
[Console输出]
This is...
StringUtils.abbreviate("How to abbreviate a string?",9) -& How to...
------------------------------
计算字符串出现频率:
【检测字符串出现频率& countMatches()】
File manuscriptFile = new File( " manuscript.txt " );
Reader reader = new FileReader( manuscriptFile );
StringWriter stringWriter = new StringWriter( );
while ( reader.ready( ) ) { writer.write( reader.read( ) ); }
String manuscript = stringWriter.toString( );
// Convert string to lowercase
manuscript = StringUtils.lowerCase(manuscript);
// count the occurrences of "futility"
int numFutility = StringUtils.countMatches( manuscript, " futility " );
-----------------------------------
判断空字符串,空格及null
&&&&&& isEmpty()判断是否为空字符串或null
&&&&&& isNotEmpty()==!isEmpty()
&&&&&& isBlank()判断是否为空格,空字符串或null
&&&&&& isNotBlank()==!isBlank()
检测字符串内容
&&&&&& isNumeric()判断是否只包含0-9
&&&&&& isAlpha()判断是否只包含字母
&&&&&& isAlphanumeric()判断是否只包含字母和数字的组合
&&&&&& isAlphaSpace()判断是否只包含空格和字母
substringBefore()捕获指定字符串之前的内容
&&&&&& substringAfter()捕获指定字符串之后的内容
&&&&&& substringBeforeLast()捕获指定字符串最后出现处之前的内容
&&&&&& substringAfterLast()捕获指定字符串最后出现处之后的内容
StringUtils.substringBetween("[hello,heis]","[","]") -&hello,heis
difference(str1,str2)输出第二个字符串与第一个相差的字符串
StringUtils.difference("word","world") -&ld&
反转字符串和反转句子的单词顺序
reverse()
StringUtils.reverse("I'm heis") -&sieh m'I&&
StringUtils.reverseSentence("I'm heis") -&heis I'm&
输出两个字符编辑距离,即一个字符串要转换到另一个字符串需要插入,删除和替换的字符的次数。
getLevenshteinDistance(str1,str2)
StringUtils.getLevenshteinDistance("steve","stereo") -&2&
StringUtils.getLevenshteinDistance("heis","hello") -&3&
(239.5 KB)
下载次数: 63
浏览 11775
浏览: 40495 次hibernate3.3和struts2中的jar包中都有antlr这个jar会不会冲突
如果冲突该怎么删除一个,用的是myeclipse2014
你为啥不试试看呢
--- 共有 1 条评论 ---
其实我已经用过了,没有发现什么不对的,只是有人今天说会有冲突,我想可能是我还没遇到这种问题

我要回帖

更多关于 stringutils jar 的文章

 

随机推荐