Sponsored Content
Homework and Emergencies Homework & Coursework Questions Refactoring via SHELL utilities Post 302562391 by Okysho on Thursday 6th of October 2011 05:47:40 PM
Old 10-06-2011
Thanks Corona, I didn't actually realize that a ";" meant a line break, I thought it was part of the if statement process.

Here's some sample input/output:
Code:
package uwindsor.cs256;
public class aaa {
aaa aaaInstance ; // an instance of aaa
int aaaNum=0 ;
public aaa() {
}
}

output:
Code:
package uwindsor.cs256;
public class AAA {
AAA aaaInstance ; // an instance of AAA
int aaaNum=0 ;
public AAA() {
}
}

I'm going to point out again how the pattern is not changed, but rather explicit instances of the original input is changed.

Also, I know that the example I gave (which is from the assignment) just capitalizes, and that can be done using the "tr" command, but that's not at all what the professor wants.

I also apologize for my lack of an attempt. I'm just that lost. If this were any other programing language I wouldn't even be posting
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Zmodem Utilities

Where can I find Zmodem utilities for Soloris 7 ie: rz sz thnx (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies

2. Shell Programming and Scripting

How to manage multiple versions of a set of shell and SQL script utilities

Hi all --- I have the need to manage multiple versions of a set of utility scripts -- both shell and SQL and other .dat files. I am wondering if anyone out there knows of a good way to "PATH" to SQL and text files in a way similar to how PATH facilitates finding executables in a pre-specified... (2 Replies)
Discussion started by: DennisB
2 Replies

3. UNIX for Dummies Questions & Answers

top ten utilities in shell scripting?

Let's get some feedback about the top ten ute's you guys use in writing your scripts - I mean yeah it depends on the job and what you're trying to accomplish, but there ARE those commands (sed, grep, awk, cut, etc.) that most will use time and again... ...so, what do you use? (3 Replies)
Discussion started by: diego
3 Replies

4. UNIX for Dummies Questions & Answers

bc and wc utilities???

Hi, Can anybody explain bc and wc system utilities in Unix? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

5. UNIX for Advanced & Expert Users

utilities

hi experts, i have a file sample: ======= 000123 5 7 0008 00345 5 9 0004 how can i get an output as 123 5 7 8 345 5 9 4 thanks in an advance subhendu (5 Replies)
Discussion started by: subhendu81
5 Replies

6. UNIX and Linux Applications

Utilities for CSV

I'd like to be able to do something like 'select column_a column_c column_b from file.csv'. Scripting it probably wouldn't be too extraordinarily difficult but I'd rather not reinvent the wheel if someone's built a better one already. (3 Replies)
Discussion started by: Corona688
3 Replies

7. UNIX for Dummies Questions & Answers

Custom Reporting Utilities for SHell (CRUSH)

If you are interested in a set of utilities designed for reporting solutions within the shell, check out CRUSH on Google code. crush-tools - Project Hosting on Google Code (0 Replies)
Discussion started by: watingo
0 Replies

8. Shell Programming and Scripting

Crontab utilities

Hi gurus/lead, I have one doubt in crontab. I have shell script source code in one server. where I don't have priviliges acess R/W the shell script in that server. how can I setup the crontab to pick the code from the other unix server ? whether is there any possibility. in my... (1 Reply)
Discussion started by: ramkumar15
1 Replies
REFLECTIONFUNCTION(3)							 1						     REFLECTIONFUNCTION(3)

The ReflectionFunction class

INTRODUCTION
The ReflectionFunction class reports information about a function. CLASS SYNOPSIS
ReflectionFunction ReflectionFunctionextends ReflectionFunctionAbstractReflector Constants o const integer$ReflectionFunction::IS_DEPRECATED262144 Properties o public$name Methods o public ReflectionFunction::__construct (mixed $name) o publicstatic string ReflectionFunction::export (string $name, [string $return]) o public Closure ReflectionFunction::getClosure (void ) o public mixed ReflectionFunction::invoke ([mixed $parameter], [mixed $...]) o public mixed ReflectionFunction::invokeArgs (array $args) o public bool ReflectionFunction::isDisabled (void ) o public string ReflectionFunction::__toString (void ) Inherited methods o finalprivate void ReflectionFunctionAbstract::__clone (void ) o public ReflectionClass ReflectionFunctionAbstract::getClosureScopeClass (void ) o public object ReflectionFunctionAbstract::getClosureThis (void ) o public string ReflectionFunctionAbstract::getDocComment (void ) o public int ReflectionFunctionAbstract::getEndLine (void ) o public ReflectionExtension ReflectionFunctionAbstract::getExtension (void ) o public string ReflectionFunctionAbstract::getExtensionName (void ) o public string ReflectionFunctionAbstract::getFileName (void ) o public string ReflectionFunctionAbstract::getName (void ) o public string ReflectionFunctionAbstract::getNamespaceName (void ) o public int ReflectionFunctionAbstract::getNumberOfParameters (void ) o public int ReflectionFunctionAbstract::getNumberOfRequiredParameters (void ) o public array ReflectionFunctionAbstract::getParameters (void ) o public string ReflectionFunctionAbstract::getShortName (void ) o public int ReflectionFunctionAbstract::getStartLine (void ) o public array ReflectionFunctionAbstract::getStaticVariables (void ) o public bool ReflectionFunctionAbstract::inNamespace (void ) o public bool ReflectionFunctionAbstract::isClosure (void ) o public bool ReflectionFunctionAbstract::isDeprecated (void ) o public bool ReflectionFunctionAbstract::isGenerator (void ) o public bool ReflectionFunctionAbstract::isInternal (void ) o public bool ReflectionFunctionAbstract::isUserDefined (void ) o public bool ReflectionFunctionAbstract::isVariadic (void ) o public bool ReflectionFunctionAbstract::returnsReference (void ) o abstractpublic void ReflectionFunctionAbstract::__toString (void ) PROPERTIES
o $name - Name of the function. Read-only, throws ReflectionException in attempt to write. PREDEFINED CONSTANTS
REFLECTIONFUNCTION MODIFIERS
o ReflectionFunction::IS_DEPRECATED - Indicates deprecated functions. PHP Documentation Group REFLECTIONFUNCTION(3)
All times are GMT -4. The time now is 10:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy